RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 976250 - Make xfs filesystem failed with specified blocksize, gives "unknown option -b" error
Summary: Make xfs filesystem failed with specified blocksize, gives "unknown option -b...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 981715
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-20 08:23 UTC by bfan
Modified: 2014-06-18 02:00 UTC (History)
2 users (show)

Fixed In Version: libguestfs-1.22.4-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 981715 (view as bug list)
Environment:
Last Closed: 2014-06-13 10:37:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description bfan 2013-06-20 08:23:51 UTC
Description of problem:
Make xfs filesystem failed with specified blocksize. works for ext file system


Version-Release number of selected component (if applicable):
libguestfs-1.22.2-1.el7.x86_64

How reproducible:
100%


Steps to Reproduce:
# guestfish -x -v -N fs:xfs mkfs-opts xfs /dev/sda1 blocksize:4096

udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [05851ms] appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: part_disk "/dev/sda" "mbr"
guestfsd: main_loop: new request, len 0x3c
udevadm settle
parted -s -- /dev/sda mklabel msdos mkpart primary 128s -128s
Warning: The resulting partition is not properly aligned for best performance.
udevadm settle
libguestfs: trace: part_disk = 0
libguestfs: trace: mkfs "xfs" "/dev/sda1"
guestfsd: main_loop: proc 210 (part_disk) took 0.18 seconds
guestfsd: main_loop: new request, len 0x50
wipefs -a --force /dev/sda1
mkfs -t xfs -f /dev/sda1
libguestfs: trace: mkfs = 0
libguestfs: trace: mkfs "xfs" "/dev/sda1" "blocksize:4096"
guestfsd: main_loop: proc 278 (mkfs) took 0.20 seconds
guestfsd: main_loop: new request, len 0x50
wipefs -a --force /dev/sda1
mkfs -t xfs -f -b 4096 /dev/sda1
unknown option -b 4096
Usage: mkfs.xfs
/* blocksize */\t\t[-b log=n|size=num]
/* data subvol */\t[-d agcount=n,agsize=n,file,name=xxx,size=num,
\t\t\t    (sunit=value,swidth=value|su=num,sw=num),
\t\t\t    sectlog=n|sectsize=num
/* inode size */\t[-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
\t\t\t    projid32bit=0|1]
/* log subvol */\t[-l agnum=n,internal,size=num,logdev=xxx,version=n
\t\t\t    sunit=value|su=num,sectlog=n|sectsize=num,
\t\t\t    lazy-count=0|1]
/* label */\t\t[-L label (maximum 12 characters)]
/* naming */\t\t[-n log=n|size=num,version=2|ci]
/* prototype file */\t[-p fname]
/* quiet */\t\t[-q]
/* realtime subvol */\t[-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */\t[-s log=n|size=num]
/* version */\t\t[-V]
\t\t\tdevicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
guestfsd: error: xfs: /dev/sda1: unknown option -b 4096
Usage: mkfs.xfs
/* blocksize */\t\t[-b log=n|size=num]
/* data subvol */\t[-d agcount=n,agsize=n,file,name=xxx,size=num,
\t\t\t    (sunit=value,swidth=value|su=num,sw=num),
\t\t\t    sectlog=n|sectsize=num
/* inode size */\t[-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
\t\t\t    projid32bit=0|1]
/* log subvol */\t[-l agnum=n,internal,size=num,logdev=xxx,version=n
\t\t\t    sunit=value|su=num,sectlog=n|sectsize=num,
\t\t\t    lazy-count=0|1]
/* label */\t\t[-L label (maximum 12 characters)]
/* naming */\t\t[-n log=n|size=num,version=2|ci]
/* prototype file */\t[-p fname]
/* quiet */\t\t[-q]
/* realtime subvol */\t[-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */\t[-s log=n|size=num]
/* version */\t\t[-V]
\t\t\tdevicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
guestfsd: main_loop: proc 278 (mkfs) took 0.08 seconds
libguestfs: trace: mkfs = -1 (error)
libguestfs: error: mkfs: xfs: /dev/sda1: unknown option -b 4096
Usage: mkfs.xfs
/* blocksize */                [-b log=n|size=num]
/* data subvol */        [-d agcount=n,agsize=n,file,name=xxx,size=num,
                            (sunit=value,swidth=value|su=num,sw=num),
                            sectlog=n|sectsize=num
/* inode size */        [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
                            projid32bit=0|1]
/* log subvol */        [-l agnum=n,internal,size=num,logdev=xxx,version=n
                            sunit=value|su=num,sectlog=n|sectsize=num,
                            lazy-count=0|1]
/* label */                [-L label (maximum 12 characters)]
/* naming */                [-n log=n|size=num,version=2|ci]
/* prototype file */        [-p fname]
/* quiet */                [-q]
/* realtime subvol */        [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */        [-s log=n|size=num]
/* version */                [-V]
                        devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
libguestfs: trace: close
libguestfs: closing guestfs handle 0x7fe65954b120 (state 2)
libguestfs: trace: internal_autosync
guestfsd: main_loop: new request, len 0x28
fsync /dev/sda
guestfsd: main_loop: proc 282 (internal_autosync) took 0.00 seconds
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 30679
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsuWbhmx


Actual results:
Failed due to "unknown option -b"


Expected results:
Make file system successfully


Additional info:

Comment 3 bfan 2013-12-02 05:20:26 UTC
Verified with libguestfs-1.22.6-16.el7.x86_64

# guestfish -N fs:xfs mkfs-opts xfs /dev/sda1 blocksize:4096

works well

Comment 4 Ludek Smid 2014-06-13 10:37:29 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.