Dmitry Morozovsky
2010-Jan-26 17:52 UTC
Another ZFS RELENG_7/i386 strangeness: Operation not permitted
Dear colleagues, stable/7 as of yesterday. Operation not permitted errors during `rsync -avH --fileflags' to ZFS. Investigating: root@woozle:/usr/ports# la -io /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.* 73613 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.bg9Zcw 73728 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.dxux3T 28355 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.wxuWSQ root@woozle:/usr/ports# rm -f !$ rm -f /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.* rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.bg9Zcw: Operation not permitted rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.dxux3T: Operation not permitted rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.wxuWSQ: Operation not permitted zfs umount/mount does not fix the problem. turning on vfs.zfs.debug does not reveal anything. WTF? (sorry ;) I'm puzzled. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------
Dmitry Morozovsky
2010-Jan-26 18:14 UTC
Another ZFS RELENG_7/i386 strangeness: Operation not permitted
On Tue, 26 Jan 2010, Dmitry Morozovsky wrote: DM> Dear colleagues, DM> DM> stable/7 as of yesterday. Operation not permitted errors during DM> `rsync -avH --fileflags' to ZFS. Investigating: DM> DM> root@woozle:/usr/ports# la -io DM> /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.* DM> 73613 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.bg9Zcw DM> 73728 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.dxux3T DM> 28355 -rw-r--r-- 1 root wheel - 1200326 Sep 25 2005 /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.wxuWSQ DM> root@woozle:/usr/ports# rm -f !$ DM> rm -f /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.* DM> rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.bg9Zcw: Operation not permitted DM> rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.dxux3T: Operation not permitted DM> rm: /w/backup/woozle/var/log/www/woozle/.access_log.9.gz.wxuWSQ: Operation not permitted DM> DM> zfs umount/mount does not fix the problem. turning on vfs.zfs.debug does not DM> reveal anything. DM> DM> WTF? (sorry ;) I'm puzzled. found the source: it's sunlnk flag on a directory, which behaves differently on UFS and ZFS: on UFS, this flag does not prevent removing files from the directory, only removing and renaming directory itself. Should I file a PR? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------