freebsd-dev/cmd
Christian Neukirchen d93b45aefc mount.zfs: use getopt_long instead of getopt to guarantee permutation of argv.
mount.zfs is called by convention (and util-linux) with arguments
last, i.e.

  % mount.zfs <dataset> <mountpoint> -o <options>

This is not a problem on glibc since GNU getopt(3) will reorder the
arguments.  However, alternative libc such as musl libc (or glibc with
$POSIXLY_CORRECT set) will not permute argv and fail to parse the -o
<options>.  Use getopt_long so musl will permute arguments.

Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4222
2016-01-25 13:17:18 -08:00
..
arc_summary Make arc_summary.py and dbufstat.py compatible with python3 2016-01-07 17:09:59 -08:00
arcstat Update arcstat.py to remove deprecated rmis reference. 2015-12-04 15:28:45 -08:00
dbufstat Make arc_summary.py and dbufstat.py compatible with python3 2016-01-07 17:09:59 -08:00
fsck_zfs
mount_zfs mount.zfs: use getopt_long instead of getopt to guarantee permutation of argv. 2016-01-25 13:17:18 -08:00
vdev_id
zdb Illumos 4891 - want zdb option to dump all metadata 2016-01-11 11:36:54 -08:00
zed
zfs Illumos 6298 - zfs_create_008_neg and zpool_create_023_neg 2016-01-15 15:38:35 -08:00
zhack Illumos 5959 - clean up per-dataset feature count code 2015-12-04 14:20:20 -08:00
zinject
zpios Add large block support to zpios(1) benchmark 2015-09-22 09:13:20 -07:00
zpool Illumos 5959 - clean up per-dataset feature count code 2015-12-04 14:20:20 -08:00
zstreamdump Illumos 5746 - more checksumming in zfs send 2015-12-30 14:24:14 -08:00
ztest Illumos 6451 - ztest fails due to checksum errors 2016-01-25 13:15:49 -08:00
zvol_id
Makefile.am