confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit 8963ec12588f7c0ca530d083aa99f73f448e1798
parent d4ccc0576cf407c6df76230d63834468a72f22d3
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Wed, 22 Nov 2017 01:17:12 +0100

fix location of multi-segment volume check
Diffstat:
Mzsh-functions/confz_fs_init | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zsh-functions/confz_fs_init b/zsh-functions/confz_fs_init @@ -501,8 +501,8 @@ confz_logical_volume_extents_check() { read vg_name lv_name pv_name pvseg_start pvseg_size segtype do vg_name=${vg_name/# #} # strip preceding space - (($#found)) && die "$0: more than one segment found" if matchvars vg_name $vg_name lv_name $lv_name; then + (($#found)) && die "$0: more than one segment found" if [[ $segtype != linear ]] || ! matchvars pv_name $pv_name offset $pvseg_start extents $pvseg_size; then die "$0: non-matching physical layout of the volume" fi