mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
fix: Remove size check
This commit is contained in:
parent
32db74e50d
commit
d24ae86c12
13
src/disk.sh
13
src/disk.sh
@ -119,19 +119,6 @@ addDisk () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if file exists
|
|
||||||
if [ ! -f "${DISK_FILE}" ]; then
|
|
||||||
error "File for ${DISK_DESC} ($DISK_FILE) does not exist!" && exit 88
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check the filesize
|
|
||||||
SIZE=$(stat -c%s "${DISK_FILE}")
|
|
||||||
|
|
||||||
if [[ SIZE -ne DATA_SIZE ]]; then
|
|
||||||
error "File for ${DISK_DESC} (${DISK_FILE}) has the wrong size: ${SIZE} bytes" && exit 89
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DISK_OPTS="${DISK_OPTS} \
|
DISK_OPTS="${DISK_OPTS} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user