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 1101236 - mkfs.xfs fails on sparse files
Summary: mkfs.xfs fails on sparse files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xfsprogs
Version: 7.0
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: Zorro Lang
URL:
Whiteboard:
Depends On: 1101228
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-26 12:39 UTC by Dan Horák
Modified: 2015-03-05 13:20 UTC (History)
3 users (show)

Fixed In Version: xfsprogs-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1101228
Environment:
Last Closed: 2015-03-05 13:20:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
strace log of the mkfs.xfs run (8.57 KB, text/plain)
2014-05-26 12:41 UTC, Dan Horák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0537 0 normal SHIPPED_LIVE xfsprogs bug fix and enhancement update 2015-03-05 16:32:20 UTC

Description Dan Horák 2014-05-26 12:39:17 UTC
+++ This bug was initially created as a clone of Bug #1101228 +++

[sharkcz@devel6 tmp]$ dd if=/dev/null of=loop-file bs=512 seek=263168

0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000263063 s, 0.0 kB/s

[sharkcz@devel6 tmp]$ mkfs.xfs -f loop-file

meta-data=loop-file              isize=256    agcount=4, agsize=8224 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0
data     =                       bsize=4096   blocks=32896, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=853, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
existing superblock read failed: Invalid argument
mkfs.xfs: pwrite64 failed: Invalid argument


Version-Release number of selected component (if applicable):
xfsprogs-3.2.0-1.fc20.s390x

Additional information:
This problem doesn't occur on x86_64 and ppc64.

--- Additional comment from Dan Horák on 2014-05-26 08:28:45 EDT ---

same happens on RHEL-7 with xfsprogs-3.2.0-0.10.alpha2.el7.s390x

Comment 1 Dan Horák 2014-05-26 12:41:06 UTC
Created attachment 899305 [details]
strace log of the mkfs.xfs run

Comment 2 Eric Sandeen 2014-07-01 15:39:14 UTC
Upstream, I sent:

[PATCH 1/2 V2] xfsprogs: try to handle mkfs of a file on 4k sector device
[PATCH 2/2 V3] mkfs.xfs: don't call blkid_get_topology on existing regular files

Not merged yet.

Comment 5 Zorro Lang 2014-10-16 10:31:30 UTC
reproduced on xfsprogs-3.2.0-0.10.alpha2.el7.s390x

+ mkfs -t xfs -f -dname=xfs.img
meta-data=xfs.img                isize=256    agcount=4, agsize=65536 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0
data     =                       bsize=4096   blocks=262144, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
existing superblock read failed: Invalid argument
mkfs.xfs: pwrite64 failed: Invalid argument

Test Pass on xfsprogs-3.2.1-3.el7.s390x.

Pass!!

Comment 7 errata-xmlrpc 2015-03-05 13:20:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0537.html


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