Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .zfs/snapshot access via NFS #3737

Closed
wants to merge 2 commits into from

Conversation

behlendorf
Copy link
Contributor

No description provided.

@behlendorf behlendorf added this to the 0.6.5 milestone Sep 3, 2015
@behlendorf
Copy link
Contributor Author

@andrey-ve @yshui could you please review and if possible test this. Building on your previous work and some improved infrastructure from commits 0282c41 and 278bee9 I've put together a small patch which adds this missing functionality. It's been tested under RHEL6 successfully and should work for other kernels but I haven't verified that yet.

andrey-ve and others added 2 commits September 4, 2015 10:00
Prevents NFS client from detection of different fileids of snapshot root dentry
before & after snapshot mount.

Signed-off-by: Andrey Vesnovaty <andrey.vesnovaty@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This patch is based on the previous work done by @andrey-ve and
@yshui.  It triggers the automount by using kern_path() to traverse
to the known snapshout mount point.  Once the snapshot is mounted
NFS can access the contents of the snapshot.

Allowing NFS clients to access to the .zfs/snapshot directory would
normally mean that a root user on a client mounting an export with
'no_root_squash' would be able to use mkdir/rmdir/mv to manipulate
snapshots on the server.  To prevent configuration mistakes a
zfs_admin_snapshot module option was added which disables the
mkdir/rmdir/mv functionally.  System administators desiring this
functionally must explicitly enable it.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#2797
Issue openzfs#1655
Issue openzfs#616
@behlendorf
Copy link
Contributor Author

Merged as:

0500e83 Support accessing .zfs/snapshot via NFS
aa9b270 Fix invalid fileid for snapshot root dentry

@behlendorf behlendorf closed this Sep 4, 2015
@behlendorf behlendorf deleted the nfs-snap branch April 19, 2021 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants