=== modified file 'sbin/snap.lvm2' --- sbin/snap.lvm2 2015-12-15 13:11:21 +0000 +++ sbin/snap.lvm2 2015-12-15 11:59:18 +0000 @@ -13,8 +13,7 @@ LOCKDIR=/var/lock/snaprep test -d "$LOCKDIR" || mkdir -p "$LOCKDIR" || exit $? LOCKFILE="$LOCKDIR/lvm2.${SRC//\//-}" -# since LVM implies Linux, I'm assuming the presence of the flock utility -if ! flock -n "$LOCKFILE" true; then +if ! flock -n "$LOCKFILE"; then echo >&2 "locked: $SRC" exit 1 fi