summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rwxr-xr-xclient/engine/Cache.lib6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/engine/Cache.lib b/client/engine/Cache.lib
index 40715946..cacba40d 100755
--- a/client/engine/Cache.lib
+++ b/client/engine/Cache.lib
@@ -275,7 +275,7 @@ ogDevToDisk ${PART%% *} 2>/dev/null
function ogFormatCache ()
{
# Variables locales.
-local DEV MNTDIR
+local DEV MNTDIR OPTIONS
# Si se solicita, mostrar ayuda.
if [ "$*" == "help" ]; then
ogHelp "$FUNCNAME" "$FUNCNAME"
@@ -288,7 +288,9 @@ DEV=$(ogDiskToDev $DEV) || return $?
# Formatear sistema de ficheros.
ogUnmountCache 2>/dev/null
-mkfs.ext4 -q -F $DEV -L "CACHE" -O extent,large_file 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
+OPTIONS="extent,large_file"
+[[ $(uname -r) =~ ^5 ]] && OPTIONS+=",uninit_bg,^metadata_csum,^64bit"
+mkfs.ext4 -q -F $DEV -L "CACHE" -O "$OPTIONS" 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
# Crear estructura básica.
MNTDIR=$(ogMountCache)