* see the file content by xfs_db
@ 2013-05-16 6:48 chen.szu.fan
2013-05-17 1:12 ` Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: chen.szu.fan @ 2013-05-16 6:48 UTC (permalink / raw)
To: linux-xfs
is it possible to see the file content by xfs_db? and how-to?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: see the file content by xfs_db
2013-05-16 6:48 see the file content by xfs_db chen.szu.fan
@ 2013-05-17 1:12 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2013-05-17 1:12 UTC (permalink / raw)
To: chen.szu.fan; +Cc: linux-xfs
On 5/16/13 1:48 AM, chen.szu.fan wrote:
> is it possible to see the file content by xfs_db? and how-to?
you can get the file mapping & dump file blocks one at a time, anyway:
[root@bp-05 ~]# mount /dev/sdb4 /mnt/test
[root@bp-05 ~]# echo "mydata" > /mnt/test/testfile
[root@bp-05 ~]# ls -i /mnt/test/testfile
53573991 /mnt/test/testfile
[root@bp-05 ~]# umount /dev/sdb4
[root@bp-05 ~]# xfs_db /dev/sdb4
xfs_db> inode 53573991
xfs_db> p u.bmx
u.bmx[0] = [startoff,startblock,blockcount,extentflag] 0:[0,3348403,1,0]
xfs_db> fsblock 3348403
xfs_db> type text
xfs_db> p
000: 6d 79 64 61 74 61 0a 00 00 00 00 00 00 00 00 00 mydata..........
010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
<snip>
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-17 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16 6:48 see the file content by xfs_db chen.szu.fan
2013-05-17 1:12 ` Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox