mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-12-24 22:19:15 +01:00
08d20f16464d1e5176391f126aee06de08e6fb34
Currently, in order to back the EFS storage with a regular file, those files have to be pre-allocated, and with their correct size. This is especially problematic when preparing a minimal FSG, since we do not know ahead of time what size to pre-allocate. Allow reads that go beyond the end of the backing storage to simply read zeroes. When a write comes in, the file will be automatically expanded to the correct size. (And should really only be written if a full sector was pulled out of the modem). For solutions that use partitions instead of files, this change should be a no-op.
Description
Languages
C
98.4%
Makefile
1.6%