* VFAT: flush mount option
@ 2011-04-21 9:41 luca ellero
2011-04-21 18:45 ` Mulyadi Santosa
0 siblings, 1 reply; 4+ messages in thread
From: luca ellero @ 2011-04-21 9:41 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* VFAT: flush mount option
2011-04-21 9:41 VFAT: flush mount option luca ellero
@ 2011-04-21 18:45 ` Mulyadi Santosa
2011-04-25 11:26 ` luca ellero
0 siblings, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2011-04-21 18:45 UTC (permalink / raw)
To: kernelnewbies
On Thu, Apr 21, 2011 at 16:41, luca ellero <lroluk@gmail.com> wrote:
> - 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).
looks like that's the job of "dirsync"...
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* VFAT: flush mount option
2011-04-21 18:45 ` Mulyadi Santosa
@ 2011-04-25 11:26 ` luca ellero
2011-04-26 8:56 ` Mulyadi Santosa
0 siblings, 1 reply; 4+ messages in thread
From: luca ellero @ 2011-04-25 11:26 UTC (permalink / raw)
To: kernelnewbies
2011/4/21 Mulyadi Santosa <mulyadi.santosa@gmail.com>
> On Thu, Apr 21, 2011 at 16:41, luca ellero <lroluk@gmail.com> wrote:
> > - 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).
>
> looks like that's the job of "dirsync"...
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
Thank you Mulyadi,
with your suggestion it works as expected.
Thanks again
regards
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110425/a92dff38/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* VFAT: flush mount option
2011-04-25 11:26 ` luca ellero
@ 2011-04-26 8:56 ` Mulyadi Santosa
0 siblings, 0 replies; 4+ messages in thread
From: Mulyadi Santosa @ 2011-04-26 8:56 UTC (permalink / raw)
To: kernelnewbies
On Mon, Apr 25, 2011 at 18:26, luca ellero <lroluk@gmail.com> wrote:
> Thank you Mulyadi,
> with your suggestion it works as expected.
> Thanks again
no problem... it's new stuff for me too..kinda guess work....glad it
solves your problem.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-26 8:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 9:41 VFAT: flush mount option luca ellero
2011-04-21 18:45 ` Mulyadi Santosa
2011-04-25 11:26 ` luca ellero
2011-04-26 8:56 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).