Comment # 6
on bug 1140
from Anatoly Pugachev
Eric,
I was able to reproduce error:
root@deb4g:/home/mator/xfstests# ./check generic/064
SECTION -- xfs
FSTYP -- xfs (non-debug)
PLATFORM -- Linux/sparc64 deb4g 4.5.0-2-sparc64-smp
MKFS_OPTIONS -- -f -bsize=4096 /dev/vdiske5
MOUNT_OPTIONS -- /dev/vdiske5 /mnt/scratch
generic/064 [failed, exit status 1] - output mismatch (see
/home/mator/xfstests/results//xfs/generic/064.out.bad)
--- tests/generic/064.out 2016-02-05 17:44:41.000000000 +0300
+++ /home/mator/xfstests/results//xfs/generic/064.out.bad 2016-05-06
15:23:41.605186305 +0300
@@ -1,2 +1,3 @@
QA output created by 064
Extent count after inserts is in range
+_check_xfs_filesystem: filesystem on /dev/vdiske5 is inconsistent (c) (see
/home/mator/xfstests/results//xfs/generic/064.full)
...
(Run 'diff -u tests/generic/064.out
/home/mator/xfstests/results//xfs/generic/064.out.bad' to see the entire diff)
_check_xfs_filesystem: filesystem on /dev/vdiske5 is inconsistent (c) (see
/home/mator/xfstests/results//xfs/generic/064.full)
Ran: generic/064
Failures: generic/064
Failed 1 of 1 tests
SECTION -- xfs
=========================
Ran: generic/064
Failures: generic/064
Failed 1 of 1 tests
root@deb4g:/home/mator/xfstests#
root@deb4g:/tmp# ulimit -c unlimited
root@deb4g:/tmp# xfs_db -F -i -p xfs_check -c check /dev/vdiske5
Bus error (core dumped)
root@deb4g:/tmp# gdb
GNU gdb (Debian 7.10-1+b1) 7.10
(gdb) set args -F -i -p xfs_check -c check /dev/vdiske5
(gdb) file xfs_db
Reading symbols from xfs_db...done.
(gdb) run
Starting program: /usr/sbin/xfs_db -F -i -p xfs_check -c check /dev/vdiske5
Program received signal SIGBUS, Bus error.
process_btinode (id=0x29bf70, dip=dip@entry=0x2f3600, type=type@entry=DBM_DATA,
totd=totd@entry=0x7feffffed70,
toti=toti@entry=0x7feffffed78, nex=nex@entry=0x7feffffed54,
blkmapp=<optimized out>, whichfork=<optimized out>) at check.c:2205
2205 scan_lbtree(be64_to_cpu(pp[i]),
(gdb) bt
#0 process_btinode (id=0x29bf70, dip=dip@entry=0x2f3600,
type=type@entry=DBM_DATA, totd=totd@entry=0x7feffffed70,
toti=toti@entry=0x7feffffed78, nex=nex@entry=0x7feffffed54,
blkmapp=<optimized out>, whichfork=<optimized out>) at check.c:2205
#1 0x0000000000110284 in process_inode (agf=<optimized out>, isfree=<optimized
out>, dip=0x2f3600, agino=<optimized out>)
at check.c:2820
#2 scanfunc_ino (block=<optimized out>, level=level@entry=0, agf=<optimized
out>, agf@entry=0x29c000, bno=bno@entry=3,
isroot=isroot@entry=1) at check.c:4498
#3 0x000000000010962c in scan_sbtree (agf=agf@entry=0x29c000, root=<optimized
out>, nlevels=<optimized out>,
isroot=isroot@entry=1, func=func@entry=0x10eb60 <scanfunc_ino>,
btype=btype@entry=TYP_INOBT) at check.c:4091
#4 0x000000000010b5a8 in scan_ag (agno=agno@entry=0) at check.c:3908
#5 0x000000000010de20 in blockget_f (argc=<optimized out>, argv=<optimized
out>) at check.c:806
#6 0x0000000000112490 in command (argc=<optimized out>,
argv=argv@entry=0x29bfe0) at command.c:98
#7 0x000000000010513c in main (argc=<optimized out>, argv=<optimized out>) at
init.c:202
(gdb)
root@deb4g:/tmp# file -s /dev/vdiske5
/dev/vdiske5: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)
root@deb4g:/tmp# xfs_info /dev/vdiske5
xfs_info: /dev/vdiske5 is not a mounted XFS filesystem
root@deb4g:/tmp# mount /dev/vdiske5 /mnt
root@deb4g:/tmp# xfs_info /dev/vdiske5
meta-data="" isize=512 agcount=4, agsize=78673 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0
data = "" blocks=314691, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
root@deb4g:/tmp# findmnt /mnt
TARGET SOURCE FSTYPE OPTIONS
/mnt /dev/vdiske5 xfs rw,relatime,attr2,inode64,noquota
root@deb4g:/tmp# df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/vdiske5 1.2G 33M 1.2G 3% /mnt
root@deb4g:/tmp# umount /mnt
root@deb4g:/tmp# xfs_metadump /dev/vdiske5 vdiske5_xfs_metadump.bin
root@deb4g:/tmp# file vdiske5_xfs_metadump.bin
vdiske5_xfs_metadump.bin: XFS filesystem metadump image
root@deb4g:/tmp# ls -lh vdiske5_xfs_metadump.bin
-rw-r--r-- 1 root root 11M May 6 17:55 vdiske5_xfs_metadump.bin
root@deb4g:/tmp#
attached is xfs_metadump and generic/064.full