diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-10-17 10:01:10 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-10-17 10:01:10 +0200 |
commit | 1f75d139cf157096eb5999be4e4355b7986f7f96 (patch) | |
tree | 1b6b98befcdbd5f61f4f6791858c9ffc7d977e5f /client/engine | |
parent | b80226ec060d17b4cdddbc0c0176fcfca7c363d5 (diff) |
Close #871: Sectors overflow comparition is moved.
Diffstat (limited to 'client/engine')
-rwxr-xr-x | client/engine/Disk.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib index a7db9209..06744bd9 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -128,10 +128,10 @@ while [ $# -gt 0 ]; do echo "$DISK$PART : start=$START, size=$SIZE, Id=$ID" >>$tmpsfdisk # Error si se supera el nº total de sectores. START=$[START+SIZE] - [ $START -le $SECTORS ] || ogRaiseError $OG_ERR_FORMAT "$[START/2] > $[SECTORS/2]" || return $? if [ "$IOSIZE" == "4096" -a $PART -gt 4 ]; then START=$[START+2048] fi + [ $START -le $SECTORS ] || ogRaiseError $OG_ERR_FORMAT "$[START/2] > $[SECTORS/2]" || return $? PART=$[PART+1] shift done |