-
Notifications
You must be signed in to change notification settings - Fork 72
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
Userobj, groupobj and project quotas #727
base: master
Are you sure you want to change the base?
Conversation
Ah hmm it seems the |
"should be implenented" - is this ready for testing then or should it be implenented first before it gets to testing? |
The boolean featureflags in use thus far in ZFS are extremely useful, but because they take advantage of the zap layer, more interesting data than just a true/false value can be stored in a featureflag. In redacted send/receive, this is used to store the list of redaction snapshots for a redacted dataset. This change adds the ability for ZFS to store types other than a boolean in a featureflag. The only other implemented type is a uint64_t array. It also modifies the interfaces around dataset features to accomodate the new capabilities, and adds a few new functions to increase encapsulation. This functionality will be used by the Redacted Send/Receive feature. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #7981
6a2a0c4
to
c488622
Compare
Change vnode ioctl to fcntl XNU will deny ioctl to any vnode that is not BLK or CHR. It is expected that fcntl() is used in this case. Change "zfs project" to use fcntl to query projid. Potentially there is no way to set project, without an equivalent tool to Linux "chattr". But pool import should at least work, as well as quota restrictions.
c23edcd
to
c0f2977
Compare
I haven't tested much new functionality of this PR, I just use this branch with my ZFS pool created with current ZoL 0.8.4 without any features disabled by command from OpenZFS wiki on Debian root on ZFS :
I saw two freezes today when I try to
It contains only clone of opengapps repo in a subfolder and has mds disabled by file |
Oh sorry, not resets, but complete freezes, so GUI is there, but no clock ticks (I have seconds enabled in my clock). |
This includes the commit:
Add types to featureflags in zfs
as well as commits for userobj quotas, and project quotas, all in one PR.
They are rather intertwined.
This is a port from HEAD on ZOL master today - not the original commits (plus updates). Some git history is lost.
Userobj, and Groupobj quotas appear to work:
Further testing of userobj, and groupobj quotas required.
Further testing with project quotas required.
zfs set|get project*quota | project*used
should at least work.zfs project
command should run, but we expectInappropriate ioctl for device
as there are no Projects in XNU.