Re: ls -al .zfs/snapshots dir reboots machine

From: Hidetoshi Shimokawa <simokawa_at_FreeBSD.ORG>
Date: Wed, 18 Apr 2007 13:10:49 +0900
I can still reproduce the problem.
Please try the attached script.
You need to set TESTFS and unprivileged USER appropriately.

> sudo sh -x zfs-hangs.sh
+ TESTFS=pool/testfs
+ USER=simokawa
+ zfs create pool/testfs
+ zfs snapshot pool/testfs_at_snap
+ cd /pool/testfs/.zfs/snapshot
+ su simokawa -c /bin/ls -F
ls: snap: Operation not permitted
+ /bin/ls -F
ls: snap: No such file or directory
+ /bin/ls -F
^C^C^C(hangs)

-----------
#!/bin/sh -x

TESTFS=pool/testfs
USER=simokawa

zfs create $TESTFS
zfs snapshot $TESTFS_at_snap

cd /$TESTFS/.zfs/snapshot

# this should be failed
su $USER -c "/bin/ls -F"

/bin/ls -F
/bin/ls -F
-----------
On 4/18/07, Pawel Jakub Dawidek <pjd_at_freebsd.org> wrote:
> On Mon, Apr 16, 2007 at 02:18:54PM +0400, Andrey V. Elsukov wrote:
> > Pawel Jakub Dawidek wrote:
> > >On Mon, Apr 16, 2007 at 10:16:48AM +0200, Johan Hendriks wrote:
> >
> > >It works just fine here, so I'm afraid I need more info. Can you setup
> > >kernel dumps?
> >
> > Some time ago i've reported about a similar problem:
> > http://lists.freebsd.org/pipermail/freebsd-current/2007-April/070789.html
>
> Should be fixed now. Stupid leftover.
>
> --
> Pawel Jakub Dawidek                       http://www.wheel.pl
> pjd_at_FreeBSD.org                           http://www.FreeBSD.org
> FreeBSD committer                         Am I Evil? Yes, I Am!
>
>


-- 
/\ Hidetoshi Shimokawa
\/  simokawa_at_FreeBSD.ORG
Received on Wed Apr 18 2007 - 02:10:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:08 UTC