mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
New APIs: findfs_partuuid and findfs_partlabel
These search for partitions by UUID or label (name). They only work for GPT.
This commit is contained in:
@@ -27,6 +27,10 @@ let rec findfs_uuid uuid =
|
||||
findfs "UUID" uuid
|
||||
and findfs_label label =
|
||||
findfs "LABEL" label
|
||||
and findfs_partuuid uuid =
|
||||
findfs "PARTUUID" uuid
|
||||
and findfs_partlabel label =
|
||||
findfs "PARTLABEL" label
|
||||
|
||||
and findfs tag str =
|
||||
(* Kill the cache file, forcing blkid to reread values from the
|
||||
|
||||
Reference in New Issue
Block a user