projects
/
ganeti-extstorage-zfs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3890cc8
)
fix snapshot detection
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Jun 2014 05:39:58 +0000
(07:39 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Jun 2014 05:39:58 +0000
(07:39 +0200)
sbin/lvcreate
patch
|
blob
|
history
diff --git
a/sbin/lvcreate
b/sbin/lvcreate
index
c743f20
..
b326a8e
100755
(executable)
--- 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