-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add a recursive option to zfs mount #2901
Comments
This feature would be especially useful if we where to add an option that would mount all child datasets with the property of zfs mount One use-case for this feature would be multi-boot environments; currently there is no elegant way to setup a multi-boot environment with child datasets that are boot environment specific.
|
I'm currently instructing to use |
I'd be great to have an option for
zfs mount
which doesn't mount specific dataset or all datasets, likezfs mount -a
, but all datasets which are children of a datasetx
, e.g.zfs mount -r x
should mount the existing datasetsx/1
,x/2/alpha
, but nota
anda/3
(well, you know what recursive means :)). The-a
option could be reused, i.e. the meaning ofzfs mount -a <dataset>
would become different fromzfs mount -a
without dataset specification, but I guess that adding an option, e.g.-r
would be more elegant and easier to test and document.The mountpoints should be checked recursively for conflicting mountpoint, which would be identical one and those which are deeper in the tree than than predecessors in a top down iteration of the tree. The command should simply fail when such a conflict is encountered.
The text was updated successfully, but these errors were encountered: