summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/fat.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-06 10:12:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-06 10:20:46 +0200
commitfae59c9b4248e5511d1ea469624aa9842fc289e1 (patch)
tree524139be7f6d630b168319acd777e94a724542b5 /cpukit/libfs/src/dosfs/fat.h
parentFix integer overflow problems in times() (diff)
downloadrtems-fae59c9b4248e5511d1ea469624aa9842fc289e1.tar.bz2
dosfs: Support a cluster size of 64KiB
Close #3003.
Diffstat (limited to 'cpukit/libfs/src/dosfs/fat.h')
-rw-r--r--cpukit/libfs/src/dosfs/fat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libfs/src/dosfs/fat.h b/cpukit/libfs/src/dosfs/fat.h
index 1cbf9a7247..4839cb7613 100644
--- a/cpukit/libfs/src/dosfs/fat.h
+++ b/cpukit/libfs/src/dosfs/fat.h
@@ -274,7 +274,7 @@ extern "C" {
#define FAT_TOTAL_FSINFO_SIZE 512
-#define MS_BYTES_PER_CLUSTER_LIMIT 0x8000 /* 32K */
+#define MS_BYTES_PER_CLUSTER_LIMIT 0x10000 /* 64K */
#define MS_BYTES_PER_CLUSTER_LIMIT_FAT12 0x1000 /* 4K */
#define FAT_BR_EXT_FLAGS_MIRROR 0x0080
@@ -300,10 +300,10 @@ typedef struct fat_vol_s
uint8_t sec_mul; /* log2 of 512bts sectors number per sector */
uint8_t spc; /* sectors per cluster */
uint8_t spc_log2; /* log2 of spc */
- uint16_t bpc; /* bytes per cluster */
+ uint32_t bpc; /* bytes per cluster */
uint8_t bpc_log2; /* log2 of bytes per cluster */
uint8_t sectors_per_block; /* sectors per bdbuf block */
- uint16_t bytes_per_block; /* number of bytes for the bduf block device handling */
+ uint32_t bytes_per_block; /* number of bytes for the bduf block device handling */
uint8_t bytes_per_block_log2; /* log2 of bytes_per_block */
uint8_t fats; /* number of FATs */
uint8_t type; /* FAT type */