mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Sync option destroys flash!
@ 2005-05-14  2:43 linux
  2005-05-17 13:36 ` Lennart Sorensen
  0 siblings, 1 reply; 7+ messages in thread
From: linux @ 2005-05-14  2:43 UTC (permalink / raw)
  To: linux-kernel

Alan the Hirsute spake unto the masses:
> All non-shite quality flash keys have an on media log structured file
> system and will take 100,000+ writes per sector or so. They decent ones
> also map out bad blocks and have spares. The "wear out the same sector"
> stuff is a myth except on ultra-crap devices.

I would have though so, but I can say from personal experience that
SanDisk brand CF cards respond to losing power during a write by producing
a bad sector.  I had assumed that a sensible implementation would take
advantage of the out-of-place writing by doing a two-phase commit at
write time, so writes would be atomic.

Does anyone know of a CF manufacturer that *does* guarantee atomic writes?
Obviously, if power is lost during a write, it's not clear whether
I'll get the old or the new contents, but I want one or ther other and
not -EIO.

Given that SanDisk first developed the CompactFlash card, you'd think they'd
be a fairly reputable brand...

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-05-19 12:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-14  2:43 Sync option destroys flash! linux
2005-05-17 13:36 ` Lennart Sorensen
2005-05-17 20:31   ` linux
2005-05-17 20:43     ` Richard B. Johnson
2005-05-18 21:08       ` Sync option destroys flash! Now I'm confused Michael H. Warfield
2005-05-19 12:50         ` Richard B. Johnson
2005-05-18 13:37     ` Sync option destroys flash! Lennart Sorensen

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®