From: Dobrica Pavlinusic Date: Wed, 25 Jun 2014 05:39:58 +0000 (+0200) Subject: fix snapshot detection X-Git-Url: http://git.rot13.org/?p=ganeti-extstorage-zfs;a=commitdiff_plain;h=c4be5618a6eb1b7b9e19016f02e71871050e3b8c fix snapshot detection --- diff --git a/sbin/lvcreate b/sbin/lvcreate index c743f20..b326a8e 100755 --- a/sbin/lvcreate +++ b/sbin/lvcreate @@ -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