summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-07-20 16:50:22 -0700
committerBrian Behlendorf <[email protected]>2011-07-20 19:52:26 -0700
commit22872ff5da0d12fe393e40d3e4b3c5a58d93e360 (patch)
treeb7a402d5588a747f58c0b68623dae7b43bfa921e /config
parent9fd91daeef4df4e2bc66f54bb97c88225c6dd2c7 (diff)
Use zfs_mknode() to create dataset root
Long, long, long ago when the effort to port ZFS was begun the zfs_create_fs() function was heavily modified to remove all of its VFS dependencies. This allowed Lustre to use the dataset without us having to spend the time porting all the required VFS code. Fast-forward several years and we now have all the VFS code in place but are still relying on the modified zfs_create_fs(). This isn't required anymore and we can now use zfs_mknode() to create the root znode for the filesystem. This commit reverts the contents of zfs_create_fs() to largely match the upstream OpenSolaris code. There have been minor modifications to accomidate the Linux VFS but that is all. This code fixes issue #116 by bootstraping enough of the VFS data structures so we can rely on zfs_mknode() to create the root directory. This ensures it is created properly with support for system attributes. Previously it wasn't which is why it behaved differently that all other directories when modified. Signed-off-by: Brian Behlendorf <[email protected]> Closes #116
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions