Daniel Rock
2006-May-09 08:07 UTC
[zfs-discuss] snapshots and directory traversal (inode numbers
Just noticed this:
# zfs create scratch/test
# cd /scratch/test
# mkdir d1 d2 d3
# zfs snapshot scratch/test at snap
# cd .zfs/snapshot/snap
# ls
d1 d2 d3
# du -k
1 ./d3
3 .
{so "du" doesn''t traverse the other directories
''d1'' and ''d2''}
# pwd
/scratch/test/.zfs/snapshot/snap
# cd d3
# pwd
/scratch/test/.zfs/snapshot/snap/d3
# cd ..
/scratch/test/.zfs/snapshot
{Hmm, got back two directories at once - this was done with /sbin/sh as shell,
so no ''tricks'' on "cd ..", same with
''d1'' and ''d2''}
# cd /scratch/test/.zfs/snapshot
# ls -ia
2 . 1 .. 127 snap
# cd snap
# ls -ia
3 . 3 .. 4 d1 5 d2 6 d3
{at least ''strange'' non-consistent inode numbers}
--
Daniel
This message posted from opensolaris.org
Daniel Rock
2006-May-09 10:47 UTC
[zfs-discuss] Re: snapshots and directory traversal (inode numbers
Ok, found the BugID: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6416101 and the relevant code: http://cvs.opensolaris.org/source/diff/on/usr/src/uts/common/fs/zfs/zfs_dir.c?r2=1.7&r1=1.6 So I will wait for snv_39 -- Daniel This message posted from opensolaris.org