Rockbox mail archiveSubject: Re: Safe powerdown feature
Re: Safe powerdown feature
From: c s <rb_dev_at_yahoo.com>
Date: Mon, 26 Jul 2004 17:35:10 -0700 (PDT)
--- Linus Nielsen Feltzing <linus_at_haxx.se> wrote:
> Andreas Stemmer wrote:
> > I just noticed that the safe powerdown feature
> spins up the drive every time
> > before shutting down, even if there's nothing to
> write. Are there any
> > reasons for this behaviour?
> Yes. There is currently no way of knowing if the
> settings have changed
> or not, so we have to write them to disk every time.
Since ata_delayed_write is called (indirectly via
settings_save) to update the disk whenever settings
are changed, don't we just need to spin up the disk
only if the delayed_write flag is set, i.e. if a
delayed write is pending?
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
Received on 2004-07-27