VFAT: flush mount option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I've read somewhere that the suggested mount option for USB key with FAT 
filesystem is "-o flush" instead of "-o sync" (if you want to remove the 
key safely, without executing umount or sync). sync option is quite 
dangerous (and slow) for flash file-systems since it does an aggressive 
flushing on the FAT, which can damage the flash.
Anyway with flush option (kernel 2.6.32), I experienced the following:
- if I create or modify a file on the key, the fs is sync'ed immediately 
so I can pull out the key immediately with no side effects
- but if I only create a directory and anything else, the "flush" is not 
executed immediately, so if I pull out the key, the directory just 
created disappear (which is not what I would expect).
Can someone please tell me if this is the right behaviour or am I 
missing something.
Thanks
Best regards
Luca Ellero

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux