[Bug 1858802] Re: libblkid: no bcache UUID due to ambivalent detection of bcache and xfs_external_log for regular xfs in bcache backing device
Mauricio Faria de Oliveira
mfo at canonical.com
Tue Jan 28 18:26:41 UTC 2020
eoan:
- tracker/2.3.0-1 (armhf)
- 2.3.0-1 util-linux/2.34-0.1ubuntu2.2 2020-01-28 13:29:26 UTC 0h 09m 34s mfo pass
- kopanocore/8.7.0-3build2 (armhf)
- 8.7.0-3build2 util-linux/2.34-0.1ubuntu2.2 2020-01-28 11:22:03 UTC 0h 09m 49s mfo pass
- mir/1.4.0-0ubuntu3 (armhf)
- 1.4.0-0ubuntu3 util-linux/2.34-0.1ubuntu2.2 2020-01-28 11:13:28 UTC 0h 04m 03s mfo pass
- ola/unknown (armhf)
- 0.10.7.nojsmin-2 util-linux/2.34-0.1ubuntu2.2 2020-01-28 11:25:11 UTC 0h 13m 43s mfo pass
- systemd/242-7ubuntu3.2 (s390x)
- 237-3ubuntu10.33 util-linux/2.31.1-0.4ubuntu3.5 2020-01-28 15:04:17 UTC 0h 38m 03s mfo pass
- glib2.0/2.62.1-1 (i386)
- 2.62.1-1 util-linux/2.34-0.1ubuntu2.2 2020-01-28 11:30:50 UTC 0h 12m 25s mfo pass
- openjdk-lts/11.0.5+10-0ubuntu1.1 (armhf, arm64)
- FLAKY timed out (both archs)
- sbd/1.4.0-18-g5e3283c-1ubuntu1 (i386)
- 1.4.0-18-g5e3283c-1ubuntu1 util-linux/2.34-0.1ubuntu2.2 2020-01-28 16:03:28 UTC 0h 14m 10s mfo pass
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1858802
Title:
libblkid: no bcache UUID due to ambivalent detection of bcache and
xfs_external_log for regular xfs in bcache backing device
Status in util-linux package in Ubuntu:
Fix Released
Status in util-linux source package in Xenial:
Fix Committed
Status in util-linux source package in Bionic:
Fix Committed
Status in util-linux source package in Disco:
Won't Fix
Status in util-linux source package in Eoan:
Fix Committed
Status in util-linux source package in Focal:
Fix Released
Status in util-linux package in Debian:
Unknown
Bug description:
[Impact]
* Users with an XFS filesystem on top of bcache
(this is seen on some ceph, cloud deployments)
might fail to reference the bcache device by
UUID or other udev properties.
* The journal of the regular XFS filesystem in
the bcache device is incorrectly detected as
an XFS external log; so two superblocks are
detected (bcache and xfs_external_log).
* Thus blkid fails with ambivalent superblocks
detected then doesn't provide the usual udev
properties (UUID, etc.)
* The fix improves the probe function for XFS
external log so it detects it's regular XFS
and bails out.
[Test Case]
* See test steps detailed in comment #7 and later.
- Create an XFS filesystem with the journal/log
in the beginning of the bcache device (< 256K).
- Stop the bcache device.
- Run '$ blkid -o udev -p $BCACHE_BACKING_DEVICE'.
$ sudo make-bcache -B $BACKING_DEV
$ sudo mkfs.xfs -d agsize=16m -l agnum=0 -f $BCACHE_DEV
$ echo 1 | sudo tee /sys/block/$(basename $BCACHE_DEV)/bcache/stop
$ sudo blkid -o udev -p $BACKING_DEV
[Regression Potential]
* The patch only changes the detection function
for XFS external log to be more general about
the sector where the magic of regular XFS may
be found (which is shifted inside the bcache.)
* It still checks at sector zero (the only one
checked previously), so this behavior didn't
change.
* Possible regressions are actual XFS external
log devices that are not anymore detected as
such. (Although that would probably indicate
a different bug in libblkid.)
[Other Info]
* upstream commit:
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=d756af7d640c51ce8d1414607bd3f17eeecf2424
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1858802/+subscriptions
More information about the foundations-bugs
mailing list