[Bug 1544574] Re: partman: mkfs.xfs: error - cannot set blocksize 512 on block device /dev/dasda1: Invalid argument
Dimitri John Ledkov
launchpad at surgut.co.uk
Tue Feb 16 00:19:37 UTC 2016
Parted is not used to create xfs filesystem. The call chain is d-i ->
partman -> partman-xfs -> mkfs.xfs, thus xfsprogs is used.
It defaults to XFS_DFL_BLOCKSIZE_LOG 12, that is 2**12 = 4096, i.e. 4k
block size.
Looking at the syslog, however, it shows that BLKBSZSET ioctl is called
with 512 value...
Digging further, there are two code paths in mkfs.xfs, one with blkid
probes and another one without, which simply uses hard-coded 512 value.
Checking xfsprogs build-log it appears that d-i version of mkfs.xfs is
built without blkid support
"""
[CC] xfs_mkfs.o
gcc -g -O2 -Os -DNDEBUG -DVERSION=\"4.3.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"xfsprogs\" -I../include -I../libxfs -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -funsigned-char -fno-strict-aliasing -Wall -DHAVE_MNTENT -c xfs_mkfs.c
xfs_mkfs.c:465:4: warning: #warning BLKID is disabled, so signature detection and block device access are not working! [-Wcpp]
# warning BLKID is disabled, so signature detection and block device\
^
[LD] mkfs.xfs
"""
I think two things should happen. In non-blkid case xfs is really ought to default to 4096, as per manpages.
And secondly, d-i built should come with blkid support enabled on Ubuntu, as really, anything else is not acceptable.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to xfsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/1544574
Title:
partman: mkfs.xfs: error - cannot set blocksize 512 on block device
/dev/dasda1: Invalid argument
Status in xfsprogs package in Ubuntu:
New
Bug description:
== Comment: #0 - Gerhard G. Hiller <GHILLER at de.ibm.com> - 2016-02-11 09:03:39 ==
Installer version 20101020ubuntu421
Started installation and tried to create xfs partition on DASD (blocksize 4096).
Partman returned with error: partman: mkfs.xfs: error - cannot set blocksize 512 on block device /dev/dasda1: Invalid argument
Attaching syslog, partman, and hardware-summary.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfsprogs/+bug/1544574/+subscriptions
More information about the foundations-bugs
mailing list