fs: Fixes a bug that limits volume size to 1MB
The FS needs to be allowed to choose the correct allocation unit size based on volume size. Current code passes a fixed value to the function that creates the FS. Passing 0 allows the FS to configure the required au size. Jira: ZEP-898 Change-Id: Ic43bfba8b8f8498f4db49db744743afad4b118cd Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
This commit is contained in:
parent
806ac751d4
commit
9237040302
2 changed files with 2 additions and 4 deletions
|
@ -73,7 +73,7 @@ if FS_FAT_FLASH_DISK_W25QXXDV
|
|||
|
||||
config FS_VOLUME_SIZE
|
||||
hex
|
||||
default 0x100000
|
||||
default 0x200000
|
||||
help
|
||||
This is the file system volume size in bytes.
|
||||
|
||||
|
|
|
@ -219,9 +219,7 @@ static int fs_init(struct device *dev)
|
|||
if (res == FR_NO_FILESYSTEM) {
|
||||
uint8_t work[_MAX_SS];
|
||||
|
||||
res = f_mkfs("", (FM_FAT | FM_SFD), _MAX_SS,
|
||||
work, sizeof(work));
|
||||
|
||||
res = f_mkfs("", (FM_FAT | FM_SFD), 0, work, sizeof(work));
|
||||
if (res == FR_OK) {
|
||||
res = f_mount(&fat_fs, "", 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue