]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
Restructure mount option handling
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Mar 2017 00:56:09 +0000 (19:56 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 10 Mar 2017 17:51:41 +0000 (09:51 -0800)
commit1c2555ef926521671eaca918f0aaaa97dbef02af
tree6491e5bdda80532388091def591f7ee9e59b6271
parentf298b24ddf9695fb74603a257e2a58dd7baf0159
Restructure mount option handling

Restructure the handling of mount options to be consistent with
upstream OpenZFS.  This required making the following changes.

- The zfs_mntopts_t was renamed vfs_t and adjusted to provide
  the minimal needed functionality.  This includes a pointer
  back to the associated zfsvfs_t.  Plus it made it possible
  to revert zfs_register_callbacks() and zfsvfs_create() back
  to their original prototypes.

- A zfs_mnt_t structure was added for the sole purpose of
  providing a structure to pass the osname and raw mount
  pointer to zfs_domount() without having to copy them.

- Mount option parsing was moved down from the zpl_* wrapper
  functions in to the zfs_* functions.  This allowed for the
  code to be simplied and it's where similar functionality
  appears on other platforms.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/zfs_vfsops.h
module/zfs/zfs_ctldir.c
module/zfs/zfs_ioctl.c
module/zfs/zfs_vfsops.c
module/zfs/zpl_super.c