export VOL_NAME before use
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Jun 2014 07:39:28 +0000 (09:39 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Jun 2014 07:39:28 +0000 (09:39 +0200)
sbin/lvremove

index 5f7bdfa..ee15f23 100755 (executable)
@@ -11,11 +11,11 @@ if echo $* | grep -q $EXTP_VG ; then
                fi
                shift;
        done
+       export VOL_NAME
 
        origin=$(zfs_get lv:origin)
 
        # destroy snapshot and clone
-       export VOL_NAME
        $dir/remove
        if [ ! -z "$origin" ] ; then
                VOL_NAME=$origin@snap $dir/remove