-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blkid --match-types has no effect #3111
Comments
It works as expected; maybe the man page should be more accurate. The option disables/enables the probing functions in the libblkid. This means that when you restrict it to "swap," it can detect only a swap area, and other filesystems are invisible to the prober. It's not an error if nothing is detected. Yes, the name of the option is not ideal ... Anyway, it returns "2" if nothing is detected on the device:
If you want to filter devices by filesystem type, it's better to use |
Thanks for the explanation. The man page mislead me. It would be nice if the man page could be clarified. |
blkid --match-types seems to have no effect:
I expect blkid will fail if the type does not match.
This behavior is the same on Ubuntu 22.04, Ubuntu 24.04, Ubuntu 24.10 (util-linux 2.39.3-9ubuntu6), and Debian unstable (util-linux 2.40.1-9).
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2071807
The text was updated successfully, but these errors were encountered: