[PATCH 2/2] dosfs: Lazy update of FAT32 FS info sector
sebastian.huber at embedded-brains.de
Thu Nov 8 21:20:45 UTC 2012
On 08/11/12 22:14, Chris Johns wrote:
> Sebastian Huber wrote:
>> Update the free cluster count and next free culster in the FAT32 FS info
>> sector only during unmount and only if the values have changed since
>> mount time. This avoids writes to the FS info sector and conforms to
>> the behaviour of Linux and Windows.
> This changes the default behavior and in this case I do not think that
> is a good idea. Users may not know this is happening or what it means.
> As Claus points out often there is no shutdown procedure just power off.
We can add this update also to the sync operation. The current code
writes invalid values into the variables, so actually this change makes
nothing worse here.
> What about adding a mount option to turn this feature on, ie default
> is off ?
The free cluster count and next free cluster value in the FAT32 info
sector are only hints.
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel