bug-1794-cp-more-robust.patch

OpenNebula Systems Support Team, 03/05/2013 05:29 PM

Download (536 Bytes)

View differences:

cp 2013-03-05 18:25:42.295903579 +0100
133 133

  
134 134
# Rename the disk filename to disk.vmdk (warning: it does so in SRC)
135 135
if [ ! -f $SRC/disk.vmdk ]; then
136
    BASE_DISK_FILE=`ls $SRC | grep -v '\-\(flat\|delta\|s[0-9]*\)\.vmdk$'`
136
    BASE_DISK_FILE=`ls $SRC | grep '\.vmdk$' | grep -v '\-\(flat\|delta\|s[0-9]*\)\.vmdk$'`
137 137

  
138 138
    exec_and_log "mv -f $SRC/$BASE_DISK_FILE $SRC/disk.vmdk" \
139 139
                 "Error renaming disk file $SRC/$BASE_DISK_FILE to $SRC/disk.vmdk"