fix path and vg recognition
authorMatthias Förste foerste@schlittermann.de
Thu, 13 Oct 2011 11:58:37 +0200
changeset 1 8088d7da74bf
parent 0 1ce20afb2058
child 2 95241f6c5c1c
fix path and vg recognition
snapfsck.bash
--- a/snapfsck.bash	Wed Aug 10 09:45:54 2011 +0200
+++ b/snapfsck.bash	Thu Oct 13 11:58:37 2011 +0200
@@ -31,8 +31,8 @@
 }
 
 p=${1:?device required}
-p=${p#/dev}
-vg=${p%%/*}
+p=${p#/dev/}
+vg=${p%/*}
 lv=${p##*/}
 lvs="snap.${lv}"