chiark / gitweb /
nosnap debian_version_4_1_13
authorianmdlvl <ianmdlvl>
Fri, 16 Feb 2007 19:10:42 +0000 (19:10 +0000)
committerianmdlvl <ianmdlvl>
Fri, 16 Feb 2007 19:10:42 +0000 (19:10 +0000)
backup/Makefile
backup/nosnap [new file with mode: 0755]
debian/changelog

index c4f0ae6..77449a7 100644 (file)
@@ -29,7 +29,7 @@ BINSCRIPTS=   checkallused loaded driver takedown whatsthis labeltape \
                snaprsync
 SHARESCRIPTS=  bringup full increm snap-drop
 SHAREFILES=    backuplib.pl snap-common
-SNAPKINDS=     lvm remount remountrocp
+SNAPKINDS=     lvm remount remountrocp nosnap
 
 EXAMPLES=      relativity chiark
 
diff --git a/backup/nosnap b/backup/nosnap
new file mode 100755 (executable)
index 0000000..c1f16dd
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+removes () {
+       rm -f -- "$vardir/snap-mount" "$vardir/snap-device"
+}
+
+vardir="$2"
+
+case "$#.$1" in
+2.drop)
+       removes
+       ;;
+4.snap)
+       removes
+       ln -s -- "$3" "$vardir/snap-device"
+       ln -s -- "$4" "$vardir/snap-mount"
+       ;;
+*)
+       cat >&2 <<'END'
+usage: .../nosnap snap VARDIR DEV MOUNT
+       .../nosnap drop VARDIR
+END
+       exit 1
+       ;;
+esac
index 5872cbc..7ac8f1a 100644 (file)
@@ -1,3 +1,9 @@
+chiark-utils (4.1.13) unstable; urgency=low
+
+  * New `nosnap' no-op snap kind.
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Fri, 16 Feb 2007 19:10:23 +0000
+
 chiark-utils (4.1.12) unstable; urgency=low
 
   * New `watershed' program.