On Oct 18, 2009, at 11:37 AM, Sander Smeenk wrote:

I tried to indicate that it's strange that rmdir works on the snapshot
directory while files inside snapshots are immutable.

This, to me, is a bug.

If you have a snapshot named "p...@snap", this:

# rmdir /pool/.zfs/snapshot/snap

is equivalent to this:

# zfs destroy p...@snap

Similarly, this:

# mkdir /pool/.zfs/snapshot/snap

is equivalent to this:

# zfs snapshot p...@snap

This can be very handy if you want to create or destroy
a snapshot from an NFS client, for example.

-Chris

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

Reply via email to