On Tue, 2010-09-07 at 15:07 +1200, Tim Foster wrote: > On Mon, 2010-09-06 at 19:24 -0700, Shawn Walker wrote: > > > In src/modules/server/repository.py, line 2710, addressing bug 16979, I > > > think it would be useful to add a check to allow the special directory > > > entry '.zfs' to exist in otherwise empty directories. > > > > Is there any way to determine that it's actually a .zfs snapshot > > directory and not a directory called .zfs? :) I know the likelihood is > > rare, but it'd be nice if there's some os.stat() attribute I can use > > beyond checking for a directory named '.zfs'. > > It looks like it's inode number is always 1, via > http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_ctldir.c#199
Not my day for citations - I pointed at the wrong bit of zfs code, it's actually http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/sys/zfs_ctldir.h#ZFSCTL_INO_ROOT and here, setting the root inode with gfs_root_create() http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_ctldir.c#217 cheers, tim _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
