mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Fixing bug in nfs tm when moving files (#73)
git-svn-id: http://svn.opennebula.org/one/trunk@468 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
e2c5c309d3
commit
28994f7f60
@ -36,13 +36,11 @@ DST_PATH=`arg_path $DST`
|
||||
if [ "$SRC_PATH" == "$DST_PATH" ]; then
|
||||
log "Will not move, source and destination are equal"
|
||||
else
|
||||
# Is saving a disk image?
|
||||
echo "$DST_PATH" | egrep -e "^$VAR_LOCATION.+/disk\..+$"
|
||||
if [ "x$?" == "x0" ]; then
|
||||
if [ -d "$SRC_PATH" ]; then
|
||||
log "Will not move, is not saving image"
|
||||
else
|
||||
log "Moving $SRC_PATH"
|
||||
exec_and_log "mv $SRC_PATH $DST_PATH"
|
||||
else
|
||||
log "Will not move, is not saving image"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user