Add mkdev_md5sum to create and checksum given LV.
Add dev_md5sum to verify device has matching md5 sum.
lvmconf "$filter"
}
+mkdev_md5sum() {
+ rm -f debug.log
+ mkfs.ext2 "$DM_DEV_DIR/$1/$2" || return 1
+ md5sum "$DM_DEV_DIR/$1/$2" > "md5.$1-$2"
+}
+
generate_config() {
if test -n "$profile_name"; then
config_values=PROFILE_VALUES_$profile_name
vg_field $local_vg snap_count $num_snaps
}
+# Compare md5 check generated from get dev_md5sum
+dev_md5sum() {
+ md5sum -c "md5.$1-$2" || \
+ (get lv_field $1/$2 "name,size,seg_pe_ranges"
+ die "LV $1/$2 has different MD5 check sum!")
+}
+
+#set -x
unset LVM_VALGRIND
"$@"