blkid reports disk as zfs_member if it has a zfs_member partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Upstream bug report: https:/
In summary if a disk partition used for zfs is at the end of the disk then libblkid identifies the _whole_ disk as a zfs member which causes udev information returned for other partitions to be incorrect. blkid used directly reports the correct information.
# udevadm info /dev/sdb | grep ID_FS_TYPE
E: ID_FS_TYPE=
# udevadm info /dev/sdb3 | grep ID_FS_TYPE
E: ID_FS_TYPE=
# blkid /dev/sdb3
/dev/sdb3: UUID="4dcL2M-
# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
Model: HUS722T2TALA600
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 45A8D0F8-
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 4205 sectors (2.1 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOSBOOT
2 4096 2099199 1023.0 MiB EF00 EFI_DATA
3 2099200 3147775 512.0 MiB 8E00 vg1
4 3147776 7342079 2.0 GiB 8E00 vg2
5 7342080 11536383 2.0 GiB 0700 recovery
6 11536384 3907029133 1.8 TiB BF01 ztank
This is fixed for me by rebuilding the util-linux patch and adding commit f6e182078a3f05a
# udevadm info /dev/sdb | grep ID_FS_TYPE
(no output)
# udevadm info /dev/sdb3 | grep ID_FS_TYPE
E: ID_FS_TYPE=
This has been observed on Ubuntu bionic.
$ apt-cache policy util-linux
util-linux:
Installed: 2.31.1-0.4ubuntu3.7
Candidate: 2.31.1-0.4ubuntu3.7
Version table:
*** 2.31.1-0.4ubuntu3.7 500
500 http://
500 http://
100 /var/lib/
2.
500 http://
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
On Ubuntu focal an ID_FS_TYPE is also incorrectly reported for the whole disk but the information for individual partitions seems to be correct although I don't have a system with same partition table from the example. I haven't yet tried with the util-linux patch in focal.
See also: https:/ /bugs.launchpad .net/ubuntu/ +source/ util-linux/ +bug/1808421