Displaying 2 results from an estimated 2 matches for "md5stored".
Did you mean:
distored
2010 Mar 23
1
[PATCH] Ensures that persist and unpersist work with relative paths.
...fi
@@ -478,34 +479,32 @@ ovirt_store_config() {
# if it's a file then make sure it's not already
# persisted
- if [ -f $p ]; then
- if [ -f /config$p ]; then
- local md5root=$(md5 $p)
- local md5stored=$(md5 /config$p)
+ if [ -f $filename ]; then
+ if [ -f /config$filename ]; then
+ local md5root=$(md5 $filename)
+ local md5stored=$(md5 /config$filename)
if [ "$md5root" = "$md5stored" ]; then...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...persist_it=false
+
+ # if it's a file then make sure it's not already
+ # persisted
+ if os.path.isfile(filename):
+ if os.path.isfile("/config/" + filename):
+ md5root=md5sum(filename)
+ md5stored=md5sum("/config" + filename)
+ if md5root == md5stored:
+ log("File already persisted: %s\n") % filename
+ persist_it=false
+ else:
+ # persistent copy needs refresh
+...