[Lazarus] Using Lazarus on Embedded Linux?

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Sep 27 13:41:54 CEST 2010


Henry Vermaak wrote:

>> The first of those can at least be initiated using a sync() call, and
>> it's reasonable to assume that a filesystem designed for the purpose
>> won't get screwed if the driver finds it can no longer talk to the
>> storage device. However if the storage device itself is susceptible to
>> errors caused by power removal that is far more sinister.
> 
> The only delay I can see (after fsync) would be due to the hardware 
> cache of the disk in use (or a defective drive).  On linux you can call 
> hdparm to flush on-disk caches.

But is hdparm fully supported by external Flash cards, and does it 
return before or after data is guaranteed to be filly committed?

I suspect that the answer to this is going to depend on what the card 
"looks like" and how it's connected.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list