summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-05-15 11:16:31 +0200
committerIrina Gómez <irinagomez@us.es>2019-05-15 11:16:31 +0200
commitf097c21f1d1be5e6e396ba0687f237d8543ba076 (patch)
tree736d5bd7cc0a35581d758f38ac50c2edc329b7f8 /client/engine
parent04b15943a1c2000616da87528418cd96f28e70ff (diff)
Fix initCache: if the size of the cache changes, it always formats the cache. ogCheckFs includes the CACHE file system type
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/FileSystem.lib36
1 files changed, 18 insertions, 18 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 0642a854..aa1778eb 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -55,24 +55,24 @@ PART="$(ogDiskToDev $1 $2)" || return $?
TYPE=$(ogGetFsType $1 $2)
case "$TYPE" in
- EXT[234]) PROG="e2fsck"; PARAMS="-y"; CODES=(1 2) ;;
- BTRFS) PROG="btrfsck"; CODES=(1) ;;
- REISERFS) PROG="fsck.reiserfs"; PARAMS="<<<\"Yes\""; CODES=(1 2) ;;
- REISER4) PROG="fsck.reiser4"; PARAMS="-ay" ;;
- JFS) PROG="fsck.jfs"; CODES=(1 2) ;;
- XFS) PROG="xfs_repair" ;;
- F2FS) PROG="fsck.f2fs" ;;
- NTFS) PROG="ntfsfix" ;;
- EXFAT) PROG="fsck.exfat" ;;
- FAT32) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
- FAT16) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
- FAT12) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
- HFS) PROG="fsck.hfs"; PARAMS="-f" ;;
- HFSPLUS) PROG="fsck.hfs"; PARAMS="-f" ;;
- UFS) PROG="fsck.ufs" ;;
- ZFS) PROG="fsck.zfs" ;;
- *) ogRaiseError $OG_ERR_PARTITION "$1, $2, $TYPE"
- return $? ;;
+ EXT[234]|CACHE) PROG="e2fsck"; PARAMS="-y"; CODES=(1 2) ;;
+ BTRFS) PROG="btrfsck"; CODES=(1) ;;
+ REISERFS) PROG="fsck.reiserfs"; PARAMS="<<<\"Yes\""; CODES=(1 2) ;;
+ REISER4) PROG="fsck.reiser4"; PARAMS="-ay" ;;
+ JFS) PROG="fsck.jfs"; CODES=(1 2) ;;
+ XFS) PROG="xfs_repair" ;;
+ F2FS) PROG="fsck.f2fs" ;;
+ NTFS) PROG="ntfsfix" ;;
+ EXFAT) PROG="fsck.exfat" ;;
+ FAT32) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
+ FAT16) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
+ FAT12) PROG="dosfsck"; PARAMS="-a"; CODES=(1) ;;
+ HFS) PROG="fsck.hfs"; PARAMS="-f" ;;
+ HFSPLUS) PROG="fsck.hfs"; PARAMS="-f" ;;
+ UFS) PROG="fsck.ufs" ;;
+ ZFS) PROG="fsck.zfs" ;;
+ *) ogRaiseError $OG_ERR_PARTITION "$1, $2, $TYPE"
+ return $? ;;
esac
# Error si el sistema de archivos esta montado o bloqueado.
ogUnmount $1 $2