A 64K cluster size (128 sectors) for FAT16 is not common but is possible.
Allow the use of 128 sector clusters instead of outputting an error.
---
 libparted/fs/fat/calc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libparted/fs/fat/calc.c b/libparted/fs/fat/calc.c
index 026aec8..327ae67 100644
--- a/libparted/fs/fat/calc.c
+++ b/libparted/fs/fat/calc.c
@@ -62,7 +62,7 @@ PedSector
 fat_max_cluster_size (FatType fat_type) {
        switch (fat_type) {
                case FAT_TYPE_FAT12: return 1;  /* dunno... who cares? */
-               case FAT_TYPE_FAT16: return 32768/512;
+               case FAT_TYPE_FAT16: return 65536/512;
                case FAT_TYPE_FAT32: return 65536/512;
        }
        return 0;
-- 
1.6.0.6


_______________________________________________
parted-devel mailing list
parted-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to