summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-01-10 12:38:01 +0000
committerramon <ramongomez@us.es>2012-01-10 12:38:01 +0000
commitf608f482f8645e56560b6009fc20213d69eaafab (patch)
tree5fec5fc3f10babce149a0ac76efdd0c3fe0e1b87
parent9cd6cd3773dae8e7e022cdc4fd7fc11ae2a0a38c (diff)
Versión 1.0.3, #468: Formatear caché en Ext4 con opciones {{{"extent,large_file"}}}
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2426 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xclient/engine/Cache.lib10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/engine/Cache.lib b/client/engine/Cache.lib
index 6063e64c..50cd01de 100755
--- a/client/engine/Cache.lib
+++ b/client/engine/Cache.lib
@@ -160,13 +160,11 @@ DEV=$(ogDiskToDev $DEV) || return $?
# Formatear sistema de ficheros.
ogUnmountCache 2>/dev/null
- # Orden para formateo ext 4
-mkfs.ext4 $DEV -L CACHE 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
+ # Orden para formateo Ext4
+mkfs.ext4 -q -F $DEV -L "CACHE" -O extent,large_file 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
# Orden para formateo Reiser 3
- #mkfs.reiserfs -f $DEV -l "CACHE" 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
- # Orden para formateo XFS
- #mkfs.xfs $DEV -L "CACHE" || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
-# Crear estructura básica
+ #mkfs.reiserfs -f $DEV -l "CACHE" 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "CACHE" || return $?
+# Crear estructura básica.
MNTDIR=$(ogMountCache)
mkdir -p $MNTDIR/$OGIMG
}