Skip to content

exFAT takes really long to mount/open for large sizes (2TB) #1

Open
@pchwalek

Description

@pchwalek

We've recently got our hands on 2TB SD Cards and discovered limitations with the FileX library provided through Cube. When mounting systems with exFAT using the provided FileX library, the bitmap is initialized by opening the volume and then calling _fx_utility_exFAT_bitmap_initialize within the _fx_media_open function. However, _fx_utility_exFAT_bitmap_initialize takes a significant amount of time for a large SD card since it checks all the cluster states (15,000,000+ on a 2TB card!). As a reference, a 10MHz clock for an SDIO peripheral takes 10+ minutes to initialize the bitmap.

After reading the exFAT spec, I'm not entirely sure why we need to initialize the bitmap in the way it is currently implemented in this FileX exFAT library. Windows and macOS don't do this given how quickly you can mount an exFAT drive to those operating systems.

Metadata

Metadata

Assignees

Labels

fsFile system-related issue or pull-requestinternal bug trackerIssue confirmed and reported into a ticket in the internal bug tracking systemmwMW-related issue or pull-requestquestionFurther information is requested

Type

No type

Projects

Status

Analyzed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions