mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hiroyuki Machida <machida@sm.sony.co.jp>
To: Paulo Marques <pmarques@grupopie.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFD] FAT robustness
Date: Wed, 20 Jul 2005 14:03:19 -0400	[thread overview]
Message-ID: <42DE91E7.2060603@sm.sony.co.jp> (raw)
In-Reply-To: <42DB9911.9010106@grupopie.com>

Hi,

I need to explain background information more. My descriptions tends
to be depend on some knowledge about current xvfat for 2.4 kernel.

I'm not a author of xvfat fo 2.4 kernel, but can explain little more.

Current xvfat for 2.4 is designed to some specific flash memory card
controller which can guarantee atomicity of operation on ERASE-BLOCK size
unit. Xvfat for 2.4 try to merge operations on same ERASE-BLOCK under
some ordering constrain.

And xvfat for 2.4 uses own version of transaction control using 
in-core memory, not storage device like HDD nor flash ram,
to accomplish the above goal, with minimal changes on existing
FAT implementation. And this transaction control let FAT operations
came from different threads to fee from mixed up, where potentially
operation ordering problems would be caused.

We'll start with HDD, however later we'll cover memory devices.
For memory devices we may prepare another elevator functions,
depending on property of devices or lower layer. E.g. NAND/AND 
flash have  different operation units for read/write and erase,
and have some translation layer.



Paulo Marques wrote:
> Hiroyuki Machida wrote:
> 
>> [...]
>>  Q3 : I'm not sure JBD can be used for FAT improvements.       Do you 
>> have any comments ?
> 
> 
> I might not be the best person to answer this, but this just seems so 
> obvious:
Any comments are welcome.
 
> If you plan to let a recently hot-unplugged device to be used in another 
> OS that doesn't understand your journaling extensions, your disk will be 
> corrupted.
> 
> If this is supposed to work only on OS's that understand your journaling 
> extensions, then there are much better filesystems out there with 
> journaling already.

I agree. Even not removable media, this situation will be occurred.
Suppose that device like audio player which acts as USB client and provide
USB Mass class target class. Embedded storage may be handled through by
USB Host side, like Win PC or Mac.

 
> You might be able to reduce the size of the time window where hot 
> removing the media will cause problems, like writting all the data first 
> and update the metadata in as few operations as possible. But that just 
> reduces the probability of data corruption. It doesn't eliminate it at all.
> 

As other messages said, some developers suggest "SoftUpdate" to be used.
I need to consider about situation where memory devices are used, not HDD.


  reply	other threads:[~2005-07-21  8:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-17  6:41 Hiroyuki Machida
2005-07-18 11:57 ` Paulo Marques
2005-07-20 18:03   ` Hiroyuki Machida [this message]
2005-07-21 14:56     ` OGAWA Hirofumi
2005-07-21  5:22   ` Pavel Machek
2005-07-19 14:54 ` OGAWA Hirofumi
2005-07-21 12:15   ` Hiroyuki Machida
2005-07-19 16:58 Etienne Lorrain
2005-07-19 21:53 ` Horst von Brand
2005-07-20  7:35 ` Denis Vlasenko

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=42DE91E7.2060603@sm.sony.co.jp \
    --to=machida@sm.sony.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmarques@grupopie.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®