我正在玩调试文件。我首先创建了一个文件:
debugfs -w /dev/vda1
> write /etc/hosts /a/b/c/d
文件系统坏了:
[root@linux2 /]# ls -l
ls: cannot access /a/b/c/d: No such file or directory
total 8388724
-?????????? ? ? ? ? ? /a/b/c/d
系统在我看来也坏了:
[978471.090291] EXT4-fs error (device vda1): __ext4_new_inode:989: comm SystemLogFlush: failed to insert inode 9190949: doubly allocated?
[978475.765474] EXT4-fs (vda1): pa ffff93f4732c4000: logic 2133, phys. 15753237, len 1963
[978475.767163] EXT4-fs error (device vda1): ext4_mb_release_inode_pa:3803: group 480, free 1962, pa_free 1960
[978475.814801] JBD2: Spotted dirty metadata buffer (dev = vda1, blocknr = 0). There's a risk of filesystem corruption in case of system crash.
由于 debugfs 不支持通过 inode 删除文件,我该如何删除这个文件?
这里有什么问题?