public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: aluno <aluno3@poczta.onet.pl>
To: xfs@oss.sgi.com
Subject: xfs_db problem
Date: Wed, 07 Jan 2009 15:34:33 +0100	[thread overview]
Message-ID: <4964BD79.20806@poczta.onet.pl> (raw)


Hello,

Recently we've noticed that xfs_admin (xfs_db ver. 2.10.2) causes
segfault or FP traps while trying
to use following command on FAT partition:

# xfs_admin -u /dev/sda1
xfs_admin: unexpected XFS SB magic number 0xeb58906d
Floating point exception

and then makes error in dmesg:

xfs_db[10385] trap divide error ip:80b32b0 sp:fffbd900 error:0 in
xfs_db[8048000+7f000]

We know that xfs_admin is dedicated tool for XFS only not for FAT or
other filesystems,
but we would like to have xfs_db which will be able to cope with non-xfs
filesystems also.

After some investigations we've found some place and put there exit(1) -
in xfsprogs-2.10.2/db/init.c

in init() procedure:

    (...)
        sbp = &xmount.m_sb;
        if (sbp->sb_magicnum != XFS_SB_MAGIC) {
                fprintf(stderr, _("%s: unexpected XFS SB magic number
0x%08x\n"),
                        progname, sbp->sb_magicnum);
                exit(1);
        }
    (...)



Is it the right way to fix this problem?

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

             reply	other threads:[~2009-01-07 14:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-07 14:34 aluno [this message]
2009-01-07 14:43 ` xfs_db problem Eric Sandeen
2009-01-07 17:46   ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2009-01-07 14:37 aluno3

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4964BD79.20806@poczta.onet.pl \
    --to=aluno3@poczta.onet.pl \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox