On 02/05/2020 18:38, Josh Paetzel wrote:
Maybe just use the NFS model of mapall:user:group

I think a permissions map would be over engineering.


Maybe just run a recursive chown on the clone ?
That does change some metadata but should be lot less than copying all the data as well ?


       Paul

Thanks,

Josh Paetzel

On May 2, 2020, at 9:37 AM, allanj...@freebsd.org wrote:


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 <https://openzfs.topicbox.com/latest>* / openzfs-developer / see discussions <https://openzfs.topicbox.com/groups/developer> + participants <https://openzfs.topicbox.com/groups/developer/members> + delivery options <https://openzfs.topicbox.com/groups/developer/subscription> Permalink <https://openzfs.topicbox.com/groups/developer/T82313bf565b8e09c-Mdb28e1bb30ddddd42b7ce9c4>

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

Reply via email to