mirror_zfs/cmd
Ned Bass da29fe63f0 Don't leak mount flags into kernel
When calling mount(), care must be taken to avoid passing in flags
that are used only by the user space utilities.  Otherwise we may
stomp on flags that are reserved for other purposes in the kernel.

In particular, openSUSE 12.3 kernels have added a new MS_RICHACL
super-block flag whose value conflicts with our MS_COMMENT flag. This
causes incorrect behavior such as the umask being ignored.  The
MS_COMMENT flag essentially serves as a placeholder in the option_map
data structure of zfs_mount.c, but its value is never used. Therefore
we can avoid the conflict by defining it to 0.

The MS_USERS, MS_OWNER, and MS_GROUP flags also conflict with reserved
flags in the kernel. While this is not known to have caused any
problems, it is nevertheless incorrect.  For the purposes of the
mount.zfs helper, the "users", "owner", and "group" options just serve
as hints to set additional implied options.  Therefore we now define
their associated mount flags in terms of the options that they imply
rather than giving them unique values.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1457
2013-06-18 15:30:08 -07:00
..
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Don't leak mount flags into kernel 2013-06-18 15:30:08 -07:00
vdev_id vdev_id: improve keyword parsing flexibility 2013-01-25 13:44:32 -08:00
zdb Illumos #3306, #3321 2013-05-03 16:53:52 -07:00
zfs Trivial spelling fix 2013-04-19 15:43:16 -07:00
zhack Illumos #2619 and #2747 2013-01-08 10:35:35 -08:00
zinject Fix zinject list handlers 2013-05-01 17:05:58 -07:00
zpios Refresh links to web site 2013-03-06 15:46:41 -08:00
zpool Illumos #3306, #3321 2013-05-03 16:53:52 -07:00
zstreamdump Add zstreamdump .gitignore 2012-09-06 14:23:11 -07:00
ztest Constify structures containing function pointers 2013-03-04 08:49:32 -08:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Retire zpool_id infrastructure 2013-01-29 12:23:17 -08:00