diff options
author | ramon <ramongomez@us.es> | 2012-09-14 12:48:54 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-09-14 12:48:54 +0000 |
commit | 743257efc727f8dd70e59d1f3949aafe5d1cc7a7 (patch) | |
tree | 826bd80553d66b6d989c3b3a4f699c5a105e2e47 /client/engine/FileSystem.lib | |
parent | 8e9669e5b147563e59be98646311a560e0d772aa (diff) |
#142: PreparaciĆ³n para redimiensionar particiones tipo FAT.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3284 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/FileSystem.lib')
-rwxr-xr-x | client/engine/FileSystem.lib | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib index 37e13420..9b22284e 100755 --- a/client/engine/FileSystem.lib +++ b/client/engine/FileSystem.lib @@ -138,6 +138,7 @@ case "$TYPE" in REISERFS) PROG="resize_reiserfs"; PARAMS="-f" ;; BTRFS) PROG="btrfs"; PARAMS="filesystem resize max" ;; NTFS) PROG="ntfsresize"; PARAMS="<<<\"y\" -f" ;; +# FAT32|FAT16) # Usar "fatresize" *) ogRaiseError $OG_ERR_PARTITION "$1 $2 $TYPE" return $? ;; esac @@ -750,9 +751,11 @@ case "$(ogGetFsType $1 $2)" in # awk -v B=$BLKS '/minimum size/ {print int($7*1.1*B/2048)}') #resize2fs -fp $PART "${SIZE}M" &>/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $? resize2fs -fpM $PART &>/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $? - ;; + ;; +# BTRFS) # Usar "btrfs" +# ;; # REISERFS) # Usar "resize_reiserfs" -# ;; +# ;; NTFS) ogDeleteFile $1 $2 pagefile.sys ogDeleteFile $1 $2 hiberfil.sys @@ -765,6 +768,8 @@ case "$(ogGetFsType $1 $2)" in [ "$SIZE" == 0 ] && return 1 ntfsresize -fs "${SIZE}M" $PART <<<"y" || ogRaiseError $OG_ERR_PARTITION "error reduciendo $1,$2" || return $? ;; +# FAT32|FAT16) # Usar "fatresize" +# ;; *) ogRaiseError $OG_ERR_PARTITION "$1,$2" return $? ;; esac |