| To: | "chen.szu.fan" <chen.szu.fan@xxxxxxxxx> |
|---|---|
| Subject: | Re: see the file content by xfs_db |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Thu, 16 May 2013 20:12:49 -0500 |
| Cc: | linux-xfs@xxxxxxxxxxx |
| Delivered-to: | linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <loom.20130516T084318-878@xxxxxxxxxxxxxx> |
| References: | <loom.20130516T084318-878@xxxxxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/5] xfs: fix sub-page blocksize data integrity writes, Dave Chinner |
|---|---|
| Next by Date: | Re: Polish translation update for xfsprogs 3.1.11 and xfsdump 3.1.3, Dave Chinner |
| Previous by Thread: | see the file content by xfs_db, chen . szu . fan |
| Next by Thread: | Programme De Developpement, Mohammad Fathy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |