diff options
author | Karel Zak | 2009-09-14 23:33:01 +0200 |
---|---|---|
committer | Karel Zak | 2009-09-16 10:57:24 +0200 |
commit | 1b780848b0db32b972dc542a2e86aed9127599a1 (patch) | |
tree | e3f331b9caf31bf733801d51eecdf8905a4a5506 /misc-utils/blkid.c | |
parent | libblkid: refresh blkid.{h,sym} (diff) | |
download | kernel-qcow2-util-linux-1b780848b0db32b972dc542a2e86aed9127599a1.tar.gz kernel-qcow2-util-linux-1b780848b0db32b972dc542a2e86aed9127599a1.tar.xz kernel-qcow2-util-linux-1b780848b0db32b972dc542a2e86aed9127599a1.zip |
libblkid: use the new API in whole u-l-ng
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/blkid.c')
-rw-r--r-- | misc-utils/blkid.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 528e4a222..3ab0c7ee6 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -551,12 +551,16 @@ int main(int argc, char **argv) pr = blkid_new_probe(); if (!pr) goto exit; - blkid_probe_set_request(pr, - BLKID_PROBREQ_LABEL | BLKID_PROBREQ_UUID | - BLKID_PROBREQ_TYPE | BLKID_PROBREQ_SECTYPE | - BLKID_PROBREQ_USAGE | BLKID_PROBREQ_VERSION); + + blkid_probe_enable_superblocks(pr, 1); + + blkid_probe_set_superblocks_flags(pr, + BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID | + BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE | + BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION); + if (fltr_usage && - blkid_probe_filter_usage(pr, fltr_flag, fltr_usage)) + blkid_probe_filter_superblocks_usage(pr, fltr_flag, fltr_usage)) goto exit; for (i = 0; i < numdev; i++) |