On 13.08.09 13:44, Andrey V. Elsukov wrote:
Haudy Kazemi wrote:
I recently asked myself this question: Is it possible to unset ZFS properties? Or reset one to its default state without looking up what that default state is?

I have another question: is it possible to set ZFS properties without
inheritance to all descendant datasets?

I'll try to describe my situation. I'm FreeBSD user and for example
i have following datasets:
zroot/usr
zroot/usr/home
zroot/usr/home/user1
zroot/usr/home/user2
...
zroot/usr/local
zroot/usr/src
zroot/usr/ports
zroot/usr/ports/distfiles
zroot/usr/ports/packages

After some initial configuration i want to set readonly property
to the `zroot/usr` dataset. And there is problem :)

And the problem is that you mix two datasets with different intended uses into one hierarchy. You can better do split these two datasets into separate hierarchies but combine them as you want in the filesystem namespace, something like this:

zfs create zroot/usr
zfs set mountpoint=$USR
zfs create -o mountpoint=$USR/home zroot/home
zfs create zroot/home/user1
zfs create zroot/home/user2
zfs set readonly=on zroot/usr

victor
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to