[LTP] [PATCH 1/1] prepare_lvm.sh: Allow to define tmp directory

Petr Vorel pvorel@suse.cz
Mon Aug 24 13:08:13 CEST 2020


Hi Martin,

...
> You should change only LVM_IMGDIR where the backing files are stored. If
> you also change LVM_TMPDIR, it'll break the lvm.local runfile.
Wouldn't be less confusing to change both directories? Updating
generate_lvm_runfile.sh is trivial (ignoring variable setup in all 3 scripts):

- sed -e "s/{fsname}/$fsname/g" "$INFILE" >>"$OUTFILE"
+ sed -e "s/{fsname}/$fsname/g; s^/tmp/ltp/^$LVM_DIR/ltp^g" "$INFILE" >>"$OUTFILE"

> Also don't forget to update cleanup_lvm.sh.
Good point, thanks!

Kind regards,
Petr


More information about the ltp mailing list