[Top] [All Lists]

xfs_db problem

To: xfs@xxxxxxxxxxx
Subject: xfs_db problem
From: aluno <aluno3@xxxxxxxxxxxxxx>
Date: Wed, 07 Jan 2009 15:34:33 +0100
User-agent: Thunderbird (X11/20080707)

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

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
                        progname, sbp->sb_magicnum);

Is it the right way to fix this problem?

<Prev in Thread] Current Thread [Next in Thread>