Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Allow access to ZFS snapshots over SMB #24

Merged
merged 13 commits into from
Jan 30, 2018
Merged

Allow access to ZFS snapshots over SMB #24

merged 13 commits into from
Jan 30, 2018

Conversation

anodos325
Copy link

Grant OSX / Linux clients access to ZFS snapshots. Allow bypassing vfs_shadow_copy2 when needed.

Grant OSX / Linux clients access to ZFS snapshots. Allow bypassing vfs_shadow_copy2 when needed.
Convert mode->ACL inside zfsacl. This is a better fix rather than just blindly applying "everyone-readonly". Tested against 4.6.8. Patch tweaked a bit to apply to master.
| SMB_ACE4_SYNCHRONIZE;
uint32_t base_set = SMB_ACE4_READ_NAMED_ATTRS | SMB_ACE4_READ_ATTRIBUTES \
| SMB_ACE4_READ_ACL;

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd move those mode definitions outside of the function body. Possibly make macro definitions, like:

#define ZFSACL_MODIFY_SET (SMB_ACE4_READ_DATA | SMB_ACE4_READ_ACL \ 
		| SMB_ACE4_WRITE_DATA | SMB_ACE4_APPEND_DATA | SMB_ACE4_READ_NAMED_ATTRS \ 
		| SMB_ACE4_WRITE_NAMED_ATTRS | SMB_ACE4_EXECUTE | SMB_ACE4_DELETE_CHILD \ 
		| SMB_ACE4_READ_ATTRIBUTES | SMB_ACE4_WRITE_ATTRIBUTES | SMB_ACE4_DELETE \ 
		| SMB_ACE4_SYNCHRONIZE)

@kmoore134
Copy link

Jenkins: retest this please

@jhixson74 jhixson74 merged commit a4f00c2 into freenas:freenas/master Jan 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants