daemon: move Lvm.lv_canonical to new Lvm_utils module

This way the Lvm module contains only the OCaml implementations of LVM
daemon APIs.

This is simple refactoring, with no functional changes.
This commit is contained in:
Pino Toscano
2018-04-09 17:03:24 +02:00
parent 188e995d32
commit 2bdc7b83ce
7 changed files with 79 additions and 39 deletions

View File

@@ -44,7 +44,7 @@ and findfs tag str =
if String.is_prefix out "/dev/mapper/" ||
String.is_prefix out "/dev/dm-" then (
match Lvm.lv_canonical out with
match Lvm_utils.lv_canonical out with
| None ->
(* Ignore the case where 'out' doesn't appear to be an LV.
* The best we can do is return the original as-is.