xfs
[Top] [All Lists]

xfs_bmap is unable to handle options

To: linux-xfs@xxxxxxxxxxx
Subject: xfs_bmap is unable to handle options
From: Jan Derfinak <ja@xxxxxxxxxxxx>
Date: Mon, 28 Apr 2003 17:33:28 +0200 (CEST)
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hi.

I found two problems in new xfs_bmap script.
1. xfs_bmap is unable to handle options:
# xfs_bmap .build.log
.build.log:
        0: [0..311]: 644560..644871
Everything OK without options, but
# xfs_bmap -l .build.log
xfs_io: invalid option -- l
Usage: xfs_bmap [-r] [-p prog] [-c cmd]... file

2. If you haven't xfs_io in your default path, xfs_bmap is unable to find
it. I use xfs_bmap as normal user often. But I haven't /usr/sbin in my
default path. Then I call xfs_bmap with full path '/usr/sbin/xfs_bmap'. The
old binary worked correctly but new script doesn't.

The attached patch fix these problems. Please review it and apply.

                                        jan


Attachment: xfsprogs-2.4.7-bmap.patch
Description: Text document

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