All of lore.kernel.org
 help / color / mirror / Atom feed
From: lroluk@gmail.com (luca ellero)
To: kernelnewbies@lists.kernelnewbies.org
Subject: VFAT: flush mount option
Date: Thu, 21 Apr 2011 11:41:33 +0200	[thread overview]
Message-ID: <4DAFFBCD.9030503@gmail.com> (raw)

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

             reply	other threads:[~2011-04-21  9:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-21  9:41 luca ellero [this message]
2011-04-21 18:45 ` VFAT: flush mount option Mulyadi Santosa
2011-04-25 11:26   ` luca ellero
2011-04-26  8:56     ` Mulyadi Santosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DAFFBCD.9030503@gmail.com \
    --to=lroluk@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.