diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-09-25 18:07:49 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-09-25 18:07:49 +0200 |
commit | 8076226512d306e652cfbf975661847172360c82 (patch) | |
tree | 6546dc80f57f2eefdb0463c94402dfeee41b902e /client/engine/Cache.lib | |
parent | 83d87a3903ddb91b682e176644988d4e65b7ec8e (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-x | client/engine/Cache.lib | 2 |
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 |