无法删除文件或包含该文件的目录。
ls -la 的输出:
-????????? ? ? ? ? ? 1221036243.V905I191359M574755.domain.com:2$
更新 1
[root@domain Maildir]# chmod -R 777 cur
chmod: cannot access `cur/1221036243.V905I191359M574755.domain.com:2$': No such file or directory
更新2
[root@domain Maildir]# rm -rf cur
rm: cannot remove `cur': Directory not empty
rm -rf 1221036243.V905I191359M574755.domain.com:2$
rm -rf 1221036243.V905I191359M574755.domain.com:2\$
根本没有输出。
更新 3
[root@domain cur]# getfacl .
# file: .
# owner: root
# group: root
user::rwx
group::rwx
other::rwx
更新 4
[root@domain /]# umount backup
[root@domain /]# fsck /dev/md119
fsck from util-linux 2.19.1
e2fsck 1.41.14 (22-Dec-2010)
/dev/md119: clean, 1487811/183148544 files, 80994051/732566603 blocks
[root@domain /]# mount backup
更新 5
[root@domain /]# fsck -f /dev/md119
fsck from util-linux 2.19.1
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Problem in HTREE directory inode 180886324: block #10437 has bad min hash
Invalid HTREE directory inode 180886324 (/.snapshots/daily.2/h1/mailboxs/magazin/Maildir/cur). Clear HTree index<y>? yes
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md119: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md119: 1487811/183148544 files (0.1% non-contiguous), 80980327/732566603 blocks
非常感谢Michael Hampton
他的fsck -f /dev/md119
。
答案1
您需要fsck
使用该-f
选项运行才能实际执行文件系统检查。
答案2
问题在于您对目录有读取权限,但没有执行权限和写入权限。执行权限将用有用数据替换“?”,写入权限将允许您删除该文件。
写权限不足以删除目录条目。还需要执行权限。