xfs_check does not recognize fs truncation

Jan Engelhardt jengelh at medozas.de
Mon Aug 24 05:12:59 CDT 2009


Hi,


This I see on xfsprogs-2.10.1 with kernel 2.6.29.6:

# xfs_check /dev/loop0
# echo $?
0
# mount /dev/loop0 /mnt
Filesystem "loop0": Disabling barriers, trial barrier write failed
attempt to access beyond end of device
loop0: rw=0, want=3670016, limit=3649536
I/O error in filesystem ("loop0") meta-data dev loop0 block 0x37ffff
("xfs_read_buf") error 5 buf count 512
XFS: size check 2 failed

The fs is truncated (my fault/intention), but xfs_check returning 0 is 
unexpected.




More information about the xfs mailing list