test/TEST-17-LVM-THIN: fail setup if we run out of space in the thin pool
This condition is rather difficult to detect -- the writes will just remain queued and get lost on shutdown, resulting in a corrupt filesystem.master
parent
4996e53ed3
commit
91c15babdf
|
|
@ -27,6 +27,7 @@ cp -a -t /sysroot /source/* && \
|
||||||
umount /sysroot && \
|
umount /sysroot && \
|
||||||
sleep 1 && \
|
sleep 1 && \
|
||||||
lvm lvchange -a n /dev/dracut/root && \
|
lvm lvchange -a n /dev/dracut/root && \
|
||||||
sleep 1 && \
|
sleep 1
|
||||||
echo "dracut-root-block-created" >/dev/sda1
|
dmsetup status |grep out_of_data_space || \
|
||||||
|
echo "dracut-root-block-created" >/dev/sda1
|
||||||
poweroff -f
|
poweroff -f
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ test_setup() {
|
||||||
(
|
(
|
||||||
export initdir=$TESTDIR/overlay
|
export initdir=$TESTDIR/overlay
|
||||||
. $basedir/dracut-init.sh
|
. $basedir/dracut-init.sh
|
||||||
inst_multiple sfdisk mke2fs poweroff cp umount
|
inst_multiple sfdisk mke2fs poweroff cp umount grep dmsetup
|
||||||
inst_hook initqueue 01 ./create-root.sh
|
inst_hook initqueue 01 ./create-root.sh
|
||||||
inst_hook initqueue/finished 01 ./finished-false.sh
|
inst_hook initqueue/finished 01 ./finished-false.sh
|
||||||
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue