#807879 xfsprogs: Cannot mount XFS filesystem formated with mkfs.xfs newer than 3.2.1

Package:
xfsprogs
Source:
xfsprogs
Description:
Utilities for managing the XFS filesystem
Submitter:
Emil
Date:
2021-02-04 22:27:06 UTC
Severity:
normal
Tags:
#807879#5
Date:
2015-12-14 01:50:33 UTC
From:
To:
For any version of xfsprogs after v3.2.1 formating with default options:

# dpkg -l mount
ii  mount            2.27.1-1      i386          Tools for mounting and manipulating

# mkfs.xfs -f /dev/sde1
meta-data=/dev/sde1              isize=512    agcount=4, agsize=61047598 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=0
data     =                       bsize=4096   blocks=244190390, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal log           bsize=4096   blocks=119233, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

# mount /dev/sde1 /mnt/e
mount: wrong fs type, bad option, bad superblock on /dev/sde1
# dmesg
[    0.000000] XFS (sde1): bad version
[    0.000000] XFS (sde1): SB validate failed

# dpkg -i xfsprogs_3.2.1_i386.deb
# mkfs.xfs -f /dev/sde1
meta-data=/dev/sde1              isize=256    agcount=4, agsize=61047598 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=244190390, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=119233, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

# mount /dev/sde1 /mnt/e
No errors after mount.

#807879#10
Date:
2015-12-14 19:59:14 UTC
From:
To:
....

You're using a old kernel that does not support the newer features
that mkfs.xfs now sets by default. Upgrade your kernel or turn off
the features your kernel does not support. (i.e. -m crc=0)

#807879#15
Date:
2015-12-14 19:59:14 UTC
From:
To:
....

You're using a old kernel that does not support the newer features
that mkfs.xfs now sets by default. Upgrade your kernel or turn off
the features your kernel does not support. (i.e. -m crc=0)

#807879#20
Date:
2017-01-05 23:50:59 UTC
From:
To:
tags: wontfix

Tagging wontfix, as this is not a bug.  Dave points out the proper mkfs options for for older kernels, above.