public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* segment fault when running xfs_check -s
@ 2010-06-21  2:55 xiaowei hu
  2010-06-21  5:38 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: xiaowei hu @ 2010-06-21  2:55 UTC (permalink / raw)
  To: xfs; +Cc: wen.gang.wang

Hi,

Recently I was playing with xfsprogs, and did some test on xfs_check
tools in this mothod:
1.make a xfs fs on one partition.
mkfs.xfs -f /dev/sda2
2.randomly modify some blocks on this volume using xfs_db.
xfs_db -x -c blockget -c "blocktrash -3 -s 36 -n 81" /dev/sda2
3.run xfs_check -s
xfs_check -s /dev/sda2

the output saying:
[root@test1 ~]# xfs_check -s /dev/sda2
bad version number 0x78 for inode 135
bad magic number 0xa855 for inode 154
bad magic number 0x5024 for inode 165
/usr/local/bin/xfs_check: line 28:   769 Segmentation fault      xfs_db
$DBOPTS -F -i -p xfs_check -c "blockget$OPTS" $1

if I run xfs_check without -s option, don't have this fault.

Is this a known problem?

I tried the latest code ,also have this problem.


thanks,
Xiaowei



_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-22  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21  2:55 segment fault when running xfs_check -s xiaowei hu
2010-06-21  5:38 ` Dave Chinner
2010-06-22  7:17   ` xiaowei hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox