I think this idea has been discussed before, but solution that jumps to my mind 
is a set of filesystem property (zfs set) to override the ownership/group/etc 
of all files in the dataset. So in this case you might have something like:

zfs set override_user=sarvi mypool/build/cloned
(or zfs clone -o override_user=sarvi mypool/build@snap mypool/build/cloned)

It might be more useful to try to support something more like a mapping, but I 
don't know if it is worth the complexity:

zfs set override_users=buildusr:sarvi,nobody:operator mypool/build/cloned

------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/T82313bf565b8e09c-M432f6a0b55c83ba8b07af79a
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription

Reply via email to