mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
zfs_main: create, clone, rename: accept -pp for non-mountable parents
Teach `zfs {create,clone,rename}` to accept a doubled `-p` flag (`-pp`)
to create non-existing ancestor datasets with `canmount=off`.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Closes #17000
This commit is contained in:
committed by
Brian Behlendorf
parent
2f3f1ab1ba
commit
8531621aba
@@ -3657,7 +3657,7 @@ ancestorerr:
|
||||
int
|
||||
zfs_create_ancestors(libzfs_handle_t *hdl, const char *path)
|
||||
{
|
||||
return zfs_create_ancestors_props(hdl, path, NULL);
|
||||
return (zfs_create_ancestors_props(hdl, path, NULL));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user