mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: use the structs from the Structs module
No need to redeclare them again in few modules, just use them from the Structs module.
This commit is contained in:
@@ -125,13 +125,13 @@ and check_with_vfs_type device =
|
||||
let default_volume = Btrfs.btrfs_subvolume_get_default mountable in
|
||||
let vols =
|
||||
List.filter (
|
||||
fun { Btrfs.btrfssubvolume_id = id } -> id <> default_volume
|
||||
fun { Structs.btrfssubvolume_id = id } -> id <> default_volume
|
||||
) vols in
|
||||
|
||||
Some (
|
||||
(mountable, vfs_type) (* whole device = default volume *)
|
||||
:: List.map (
|
||||
fun { Btrfs.btrfssubvolume_path = path } ->
|
||||
fun { Structs.btrfssubvolume_path = path } ->
|
||||
let mountable = Mountable.of_btrfsvol device path in
|
||||
(mountable, "btrfs")
|
||||
) vols
|
||||
|
||||
Reference in New Issue
Block a user