> Found the reason behind the panic. The home directory
> is a FS in itself and it had a snapshot and the
> snapdir was "visible". Why in the world won't I be
> able to do 'find', 'du' etc. in the .zfs directory?
> 
> So, the test case is simple: create an FS, create a
> bunch of files in it (copy /usr/bin/*), snapshot it,
> mark the snapdir visible and do a 'du' or 'find'
> inside the FS root.

You're saying the following sequence of commands
would reproduce the bug?

# zfs create rpool/test

# cp -p /usr/bin/* /rpool/test/
cp: /usr/bin/amd64: is a directory
cp: /usr/bin/i86: is a directory

# zfs snapshot rpool/t...@snap

# zfs set snapdir=visible rpool/test

# du /rpool/test/
204760  /rpool/test/.zfs/snapshot/snap
204760  /rpool/test/.zfs/snapshot
3       /rpool/test/.zfs/shares
204763  /rpool/test/.zfs
409523  /rpool/test

# du -sk /rpool/test/
204761  /rpool/test

# find /rpool/test -name foobar

# 


Works for me.  I tested it on a build 140 kernel,
compiled from opensolaris mercurial sources.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to