diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-03-11 14:51:32 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-03-11 16:25:36 -0700 |
commit | 099efdd5c6e421f110f5e6f84244986ad1a5940c (patch) | |
tree | cbe4ae01a16ecb534964faf2b57108f4f024dc38 /src/property/disk.lisp | |
parent | 0b3d6348f42ca37703a8a0e4f376926bdb87e98d (diff) | |
download | consfigurator-099efdd5c6e421f110f5e6f84244986ad1a5940c.tar.gz |
rename DISK:ALL-VGS -> DISK:ALL-LVM-VOLUME-GROUPS and use MEMSTR=
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/disk.lisp')
-rw-r--r-- | src/property/disk.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp index 4cbc671..351ae86 100644 --- a/src/property/disk.lisp +++ b/src/property/disk.lisp @@ -451,7 +451,7 @@ We do not specify what logical volumes it contains.")) (and (slot-boundp volume 'data-alignment) `("--dataalignment" ,(data-alignment volume))) file) - (if (member (lvm-volume-group volume) (all-vgs) :test #'string=) + (if (memstr= (lvm-volume-group volume) (all-lvm-volume-groups)) (mrun :inform "vgextend" (lvm-volume-group volume) file) (mrun :inform "vgcreate" "--systemid" "" (and (slot-boundp volume 'physical-extent-size) @@ -460,7 +460,7 @@ We do not specify what logical volumes it contains.")) `("--alloc" ,(alloc volume))) (lvm-volume-group volume) file))) -(defun all-vgs () +(defun all-lvm-volume-groups () (mapcar (curry #'string-trim " ") (runlines "vgs" "--no-headings" "-ovg_name"))) @@ -499,7 +499,7 @@ We do not specify what logical volumes it contains.")) (defmethod create-volume ((volume lvm-logical-volume) (file null)) (with-slots (volume-label lvm-volume-group) volume ;; Check that the VG exists. - (unless (member lvm-volume-group (all-vgs) :test #'string=) + (unless (memstr= lvm-volume-group (all-lvm-volume-groups)) (failed-change "Looks like no PVs for VG ~A?" lvm-volume-group)) ;; Create the LV. (mrun :inform "lvcreate" "-Wn" |