Public bug reported:

--match-types seems to have no effect:

```
$ blkid
/dev/vda2: UUID="a89f4e16-bf48-4c85-8555-04f2fa8a6eb7" BLOCK_SIZE="4096" 
TYPE="ext4" PARTUUID="62d912c9-c2f0-4b8d-b1f2-bf0dba2787f5"
$ sudo blkid -p /dev/vda2 
/dev/vda2: UUID="a89f4e16-bf48-4c85-8555-04f2fa8a6eb7" VERSION="1.0" 
FSBLOCKSIZE="4096" BLOCK_SIZE="4096" FSLASTBLOCK="6277888" FSSIZE="25714229248" 
TYPE="ext4" USAGE="filesystem" PART_ENTRY_SCHEME="gpt" 
PART_ENTRY_UUID="62d912c9-c2f0-4b8d-b1f2-bf0dba2787f5" 
PART_ENTRY_TYPE="0fc63daf-8483-4772-8e79-3d69d8477de4" PART_ENTRY_NUMBER="2" 
PART_ENTRY_OFFSET="2203648" PART_ENTRY_SIZE="50223104" PART_ENTRY_DISK="253:0"
$ sudo blkid -p --match-types swap /dev/vda2 || echo $?
/dev/vda2: PART_ENTRY_SCHEME="gpt" 
PART_ENTRY_UUID="62d912c9-c2f0-4b8d-b1f2-bf0dba2787f5" 
PART_ENTRY_TYPE="0fc63daf-8483-4772-8e79-3d69d8477de4" PART_ENTRY_NUMBER="2" 
PART_ENTRY_OFFSET="2203648" PART_ENTRY_SIZE="50223104" PART_ENTRY_DISK="253:0"
```

I expect blkid will fail if the type does not match.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: util-linux 2.39.3-9ubuntu6
ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
Uname: Linux 6.8.0-36-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Unity:Unity7:ubuntu
Date: Wed Jul  3 13:13:10 2024
InstallationDate: Installed on 2022-03-20 (836 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: util-linux
UpgradeStatus: Upgraded to noble on 2024-04-22 (72 days ago)

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

** Summary changed:

- --match-types has no effect
+ blkid --match-types has no effect

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2071807

Title:
  blkid --match-types has no effect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2071807/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to