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:
Ivan Shapovalov
2025-01-28 12:11:18 +04:00
committed by Brian Behlendorf
parent 2f3f1ab1ba
commit 8531621aba
11 changed files with 373 additions and 23 deletions
+1 -1
View File
@@ -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));
}
/*