public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46"
@ 2007-09-14 20:07 Hxsrmeng
  2007-09-14 20:42 ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Hxsrmeng @ 2007-09-14 20:07 UTC (permalink / raw)
  To: linux-xfs


OpenSUSE10.2. and 2.6.22-rc7-default XFS
1)
I'd like to run "xfs_db -f -c "sb 0" -c "p" ./myfile | egrep
'agcount|inopblog|agblklog'" to see the three values.
I mounted my xfs_disk.
Then I run : 
               xfs_db -f -c "sb 0" -c "p" ./loop | egrep
'agcount|inopblog|agblklog'
It said:
               xfs_db: unexpected XFS SB magic number 0x2e524d46
               Floating point exception
I don't know what the problem is.
But if I umount my xfs_disk, 
Then I run 
              xfs_db {my_xfs_device}
              xfs_db>sb
              xfs_db>p
It's OK.But I can not see things about ./myfile now, since my xfs_disk is
umounted.
2)
I have to umount my xfs_disk before I use xfs_db, correct?
3)
If I want to read the inode content of a file, say, myfile, I should 
"ls -li myfile" to get the inode number of myfile
Then 
"xfs_db> inode <inode number>" to read the content of inode
Is what I said correct?
Thanks in advance.



-- 
View this message in context: http://www.nabble.com/Newbie-question-about-xfs_db-with-the-response-message-%22unexpected-XFS-SB-magic-number-0x2e524d46%22-tf4444973.html#a12682767
Sent from the linux-xfs mailing list archive at Nabble.com.

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

* Re: Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46"
  2007-09-14 20:07 Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46" Hxsrmeng
@ 2007-09-14 20:42 ` Eric Sandeen
  2007-09-14 20:58   ` Hxsrmeng
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2007-09-14 20:42 UTC (permalink / raw)
  To: Hxsrmeng; +Cc: linux-xfs

Hxsrmeng wrote:
> OpenSUSE10.2. and 2.6.22-rc7-default XFS
> 1)
> I'd like to run "xfs_db -f -c "sb 0" -c "p" ./myfile | egrep
> 'agcount|inopblog|agblklog'" to see the three values.

if "myfile" is a file on your xfs filesystem, then that's not right.
xfs_db needs to be pointed at a block device (or filesystem image file)
containing an xfs filesystem.  You can look at it while it's mounted,
though (IIRC) the information may not be perfectly in sync with the fs's
data.

agcount, inopblog, etc are parameters of an xfs filesystem, not a file
on that filesystem.

What are you trying to learn (about your file or filesystem?)

-Eric

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

* Re: Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46"
  2007-09-14 20:42 ` Eric Sandeen
@ 2007-09-14 20:58   ` Hxsrmeng
  2007-09-14 21:21     ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Hxsrmeng @ 2007-09-14 20:58 UTC (permalink / raw)
  To: linux-xfs


Thanks. 
But what should I do to " look at it while it's mounted,though (IIRC)"?
Only thing I know is that I have to umount xfs_disk to use xfs_db. But at
this time, I can not see files in my xfs_disk.

Actually, I'd like to know where exactly myfile is located in xfs_disk.


Eric Sandeen-3 wrote:
> 
> Hxsrmeng wrote:
>> OpenSUSE10.2. and 2.6.22-rc7-default XFS
>> 1)
>> I'd like to run "xfs_db -f -c "sb 0" -c "p" ./myfile | egrep
>> 'agcount|inopblog|agblklog'" to see the three values.
> 
> if "myfile" is a file on your xfs filesystem, then that's not right.
> xfs_db needs to be pointed at a block device (or filesystem image file)
> containing an xfs filesystem.  You can look at it while it's mounted,
> though (IIRC) the information may not be perfectly in sync with the fs's
> data.
> 
> agcount, inopblog, etc are parameters of an xfs filesystem, not a file
> on that filesystem.
> 
> What are you trying to learn (about your file or filesystem?)
> 
> -Eric
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Newbie-question-about-xfs_db-with-the-response-message-%22unexpected-XFS-SB-magic-number-0x2e524d46%22-tf4444973.html#a12683711
Sent from the linux-xfs mailing list archive at Nabble.com.

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

* Re: Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46"
  2007-09-14 20:58   ` Hxsrmeng
@ 2007-09-14 21:21     ` Eric Sandeen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2007-09-14 21:21 UTC (permalink / raw)
  To: Hxsrmeng; +Cc: linux-xfs

Hxsrmeng wrote:
> Thanks. 
> But what should I do to " look at it while it's mounted,though (IIRC)"?
> Only thing I know is that I have to umount xfs_disk to use xfs_db. But at
> this time, I can not see files in my xfs_disk.
> 
> Actually, I'd like to know where exactly myfile is located in xfs_disk.

xfs_bmap -v myfile

-Eric

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

end of thread, other threads:[~2007-09-14 21:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 20:07 Newbie question about xfs_db with the response message "unexpected XFS SB magic number 0x2e524d46" Hxsrmeng
2007-09-14 20:42 ` Eric Sandeen
2007-09-14 20:58   ` Hxsrmeng
2007-09-14 21:21     ` Eric Sandeen

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