mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #1911: Create at least the <vid> folder
This commit is contained in:
1 parent
09fc9ca02e
commit
f712d5be9e
3 files changed
+15
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user