From f8cd36ba70b68ffb67ed4ad79b7e6f9d71d7100c Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 3 Jun 2012 12:18:18 -0500 Subject: [PATCH] Unmount and remove testfs instances correctly during make clean. Signed-off-by: Rob Browning Reviewed-by: Zoran Zaric --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d70ed63..99248cb 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,8 @@ clean: Documentation/clean bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \ out[12] out2[tc] tags[12] tags2[tc] \ testfs.img lib/bup/t/testfs.img - rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build - if test -e testfs; then rmdir testfs; fi - if test -e lib/bup/t/testfs; then rmdir lib/bup/t/testfs; fi + if test -e bupmeta.tmp/testfs; \ + then umount bupmeta.tmp/testfs || true; fi + if test -e lib/bup/t/testfs; \ + then umount lib/bup/t/testfs || true; fi + rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build lib/bup/t/testfs -- 2.39.5