bug #1911: Create at least the <vid> folder

This commit is contained in:
Tino Vazquez committed 2013-04-16 15:43:33 +02:00
1 parent 09fc9ca02e
commit f712d5be9e
3 files changed
+15

No files matched your search

+6
View File
@@ -465,3 +465,9 @@ function vmfs_create_double_path {
vifs $VI_PARAMS --force --mkdir [$DS_ID]$FIRST_FOLDER/$SECOND_FOLDER &> /dev/null
}
function vmfs_create_simple_path {
DS_ID=$1
FIRST_FOLDER=$2
vifs $VI_PARAMS --force --mkdir [$DS_ID]$FIRST_FOLDER &> /dev/null
}
+6
View File
@@ -84,6 +84,12 @@ if [ "$DISK_TYPE" != "CDROM"]; then
else
vmfs_create_double_path $SYSTEM_DS_NAME $VMID $DST_FOLDER
fi
else
if [ "$USE_SSH" == "yes" ]; then
ssh_make_path $DST_HOST $(dirname $DST_PATH)
else
vmfs_create_simple_path $SYSTEM_DS_NAME $VMID
fi
fi
#-------------------------------------------------------------------------------
+3
View File
@@ -88,6 +88,9 @@ EOF
ssh_exec_and_log $DST_HOST "$LINK_SCRIPT" \
"Could not link dir files from $SRC_PATH to $DST_PATH"
else
# Just need to create the /<vid> folder, not the disk.<n> as well
ssh_make_path $DST_HOST $(dirname $DST_PATH)
log "Link CD-ROM from $SRC_PATH to $DST_PATH"
LINK_SCRIPT=$(cat <<EOF