diff options
Diffstat (limited to 'src/property/disk.lisp')
-rw-r--r-- | src/property/disk.lisp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp index 751813a..82da591 100644 --- a/src/property/disk.lisp +++ b/src/property/disk.lisp @@ -474,6 +474,10 @@ We do not specify what logical volumes it contains.")) (defclass-opened-volume activated-lvm-logical-volume (lvm-logical-volume)) +(defmethod volume-contents-minimum-size ((volume lvm-logical-volume)) + "LVs cannot be of zero size." + (max 1 (call-next-method))) + (defmethod open-volume ((volume lvm-logical-volume) (file null)) (with-slots (volume-label lvm-volume-group) volume (mrun "lvchange" "-ay" (strcat lvm-volume-group "/" volume-label)) |