fix check for existence of zvol
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Jun 2014 12:13:06 +0000 (14:13 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Jun 2014 12:13:06 +0000 (14:13 +0200)
remove

diff --git a/remove b/remove
index 2d49348..0be0674 100755 (executable)
--- a/remove
+++ b/remove
@@ -2,7 +2,7 @@
 
 . /usr/share/ganeti/extstorage/zfs/defaults.sh
 
-test -e /dev/zvol/$EXTP_VG/$VOL_NAME || exit 0
+test -e /dev/zvol/$EXTP_ZFS/$VOL_NAME || exit 0
 
 # remove snapshot flag on origin
 origin=$(zfs_get lv:origin)