Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: Free HD space and PANIC

Re: Free HD space and PANIC

From: c s <rb_dev_at_yahoo.com>
Date: Mon, 16 Jun 2003 18:31:17 -0700 (PDT)

--- Linus Nielsen Feltzing <linus_at_haxx.se> wrote:
> c s wrote:
> > Can this fix also be extended to provide the
> correct
> > amount of free space in the info menu? I know that
> the
> > free space readout is wrong because of Microsoft's
> > buggy and inconsistant behavior, but we wouldn't
> be
> > the first ones to program around MS bugs.
>
> It is actually very simple. All we have to do is
> search the entire FAT
> for free clusters and sum them up. That takes quite
> a few seconds,
> depending on the size of the FAT. We have code that
> does exactly that,
> but only in the debug menu.
>
> If the user accepts this (battery-draining)
> behaviour, we can change
> that in an instance. But it means that the disk will
> spin up and search
> the FAT for 5-10 (or more) seconds when the info
> menu is entered.
>
> Opinions? Comments?
>
> Linus
>

We only have to do it once per USB session right? If
we fix the count only when a USB session ends, we will
be good because as buggy as MS Windows is, even they
can't muck it up once the USB is disconnected.

=====
Craig

rb_dev_at_yahoo.com

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Received on 2003-06-17

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy