fix snapshot detection
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 05:39:58 +0000 (07:39 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 05:39:58 +0000 (07:39 +0200)
sbin/lvcreate

index c743f20..b326a8e 100755 (executable)
@@ -20,7 +20,7 @@ if echo $* | grep -q $EXTP_VG ; then
                shift
        done
 
-       if [ ! $SNAP ] ; then
+       if [ $SNAP = 0 ] ; then
 
                test -e /dev/zvol/$EXTP_ZFS/$VOL_NAME || \
                zfs create -V ${VOL_SIZE} $EXTP_CREATE $EXTP_ZFS/$VOL_NAME