[node-patches] Change in ovirt-node[master]: Fix remove_config issue for an unexistent file
wenyi at linux.vnet.ibm.com
wenyi at linux.vnet.ibm.com
Wed Apr 2 05:33:48 UTC 2014
Wenyi Gao has uploaded a new change for review.
Change subject: Fix remove_config issue for an unexistent file
......................................................................
Fix remove_config issue for an unexistent file
Unpersisting a unexistent file will cause all the files under config are removed.
For example: The command "unpersist /x/y" will cause all the files under /config
are removed.
Change-Id: I2eea0f9d96e616ad45633243f94ecb84ddd7ae86
Signed-off-by: Wenyi Gao <wenyi at linux.vnet.ibm.com>
---
M scripts/ovirt-functions.in
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/44/26344/1
diff --git a/scripts/ovirt-functions.in b/scripts/ovirt-functions.in
index b42d278..8a7e289 100644
--- a/scripts/ovirt-functions.in
+++ b/scripts/ovirt-functions.in
@@ -742,7 +742,9 @@
printf "File not explicitly persisted: ${filename}\n"
fi
# clean up the persistent store
- rm -Rf /config$filename
+ if [ x$filename != "x" ]; then
+ rm -Rf /config$filename
+ fi
done
fi
}
--
To view, visit http://gerrit.ovirt.org/26344
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2eea0f9d96e616ad45633243f94ecb84ddd7ae86
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Wenyi Gao <wenyi at linux.vnet.ibm.com>
More information about the node-patches
mailing list