From e99352f5d94043198087a8be6a48421221e5cf5c Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Tue, 11 Oct 2016 16:45:25 +0300 Subject: [PATCH] fix tm/qcow2/ln fix clean before attach (#124) Following this forum thread https://forum.opennebula.org/t/opennebula-5-0-2-attach-detach-images-datastore-folder-not-cleaned-up/3111 --- src/tm_mad/qcow2/ln | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_mad/qcow2/ln b/src/tm_mad/qcow2/ln index 40c4fc8a13..9aa8da5ef5 100755 --- a/src/tm_mad/qcow2/ln +++ b/src/tm_mad/qcow2/ln @@ -111,7 +111,7 @@ fi ln -sf "$SNAP_DIR/\$SNAP" "$DST_PATH" -$RM -f "${DST_PATH}.snap" +$RM -rf "${DST_PATH}.snap" ln -sf "$SNAP_DIR" "${DST_PATH}.snap" EOT )