commit 59976671f934151f1a1b55266f34ac930cdbacbf
parent 5a3f94777afc9c4458eef29689ea7dc36599e0e2
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 15 Dec 2015 12:52:13 +0100
remove duplicate pid write
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/sbin/snap.lvm2 b/sbin/snap.lvm2
@@ -28,7 +28,6 @@ if test -d "$SNAPSHOT"; then
# make sure it's empty and unused
rmdir "$SNAPSHOT" || exit $?
fi
-echo $$ >"$LOCKFILE" || exit $?
mkdir -p "$SNAPSHOT" || exit $?
lvcreate -n "${SRC##*/}.snaprep" -L "${SNAPSHOT_SIZE:-10G}" -s "$SRC" || exit $?
die_lvremove() {