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:
Pino Toscano
2018-04-09 14:21:04 +02:00
parent a43bdb9379
commit 188e995d32
5 changed files with 7 additions and 34 deletions

View File

@@ -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