Transcript:
$ ls -al
total 0
drwxrwxrwx 1 root root 8 Jun 14 05:13 .
drwxrwxrwx 1 root root 6 Jun 14 04:57 ..
drwxrwxrwx 1 root root 0 Jun 12 00:29 DARN
$ ls -al DARN/
total 0
drwxrwxrwx 1 root root 0 Jun 12 00:29 .
drwxrwxrwx 1 root root 8 Jun 14 05:13 ..
$ sudo lsof | grep DARN
$ sudo rmdir DARN
rmdir: failed to remove 'DARN': Operation not permitted
I can rename the directory, I can even move it outside of its parent. Reboot didn't help either.
This is Arch Linux 4.0.5-1-ARCH (current).
Update: Dan suggested extended attributes:
$ sudo lsattr .
---------------- ./DARN
$ sudo lsattr DARN/
$
I guess that means there aren't any?
From the BTRFS FAQ:
if you get:
rmdir: failed to remove ‘emptydir’: Operation not permitted
then this is probably because "emptydir" is actually a subvolume. You can check whether this is the case with:
# btrfs subvolume list -a /mountpoint
To delete the subvolume you'll have to run:
# btrfs subvolume delete emptydir
This is apparently a well-known problem, with a well-defined solution. If this works, I would also run
btrfs check --repair /dev/sdXY
just in case.
If all else fails, run
lsof +D /path/to/DARN
from outside DARN, and see whether anything is actually accessing the directory so fast that you cannot see it.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다