summaryrefslogtreecommitdiffstats
path: root/client/engine/Cache.lib
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-09-25 18:07:49 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-09-25 18:07:49 +0200
commit8076226512d306e652cfbf975661847172360c82 (patch)
tree6546dc80f57f2eefdb0463c94402dfeee41b902e /client/engine/Cache.lib
parent83d87a3903ddb91b682e176644988d4e65b7ec8e (diff)
#871: Dejar espacio libre entre particiones lógicas y alinear partición de caché en sector físico para discos con sectores de 4 KB.
Diffstat (limited to 'client/engine/Cache.lib')
-rwxr-xr-xclient/engine/Cache.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Cache.lib b/client/engine/Cache.lib
index 8f6c9663..0e7f51ef 100755
--- a/client/engine/Cache.lib
+++ b/client/engine/Cache.lib
@@ -87,7 +87,7 @@ SIZE=$[$SIZECACHE*2] # Tamaño en sectores de 512 B.
IOSIZE=$(fdisk -l $DISK | awk '/I\/O/ {print $4}')
if [ $IOSIZE -eq 4096 ]; then
END=$[$END-8192]
- START=$[END-SIZE-8192]
+ START=$[END-SIZE+2048-(END-SIZE)%2048]
else
START=$[END-SIZE+1]
fi