Quoting A Darren Dunham (ddun...@taos.com):

> > i noticed rsync -removes- snapshots even though i am not able to do
> > so myself, even as root, with plain /bin/rm.
> I never liked this interface.  I want snapshots to be immutable to
> operations within the filesystem itself.

Well, thats what i would expect too. It seems strange that you can't
edit or remove singular files from snapshots though you can rmdir
acomplete snapshot 'directory' at once. Is this by design? I call it a
bug. ;)

> /bin/rmdir on the other hand did do a rmdir(2), and that does destroy
> the snapshot.

It seems to me that the 'base directory' or 'mountpoint' of the
snapshot, e.g. .zfs/snapshot/<name> is not immutable, as all files and
directories inside the snapshot are:

r...@host:/backup/host/.zfs/snapshot/2009-10-14# rmdir bin
rmdir: bin: Read-only file system

> Although I see sometimes the rmdir fails.  If I've been doing
> "something" in a snapshot (sometimes some stats are enough), then it
> seems to "lock" the snapshot and the rmdir fails (with EBUSY).

Hmm. I haven't noticed such behaviour myself.  I guess i'm gonna switch
off snapdir visibility while rsync runs, or something.

Regards,
-Sndr.
-- 
| So this magician is walking down the street and turns into a grocery store.
| 4096R/6D40 - 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to