[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: KDirLister keeps mounted devices in use
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-01-08 12:53:56
[Download RAW message or body]

Am Mittwoch, 8. Januar 2003 12:58 schrieb Michael Brade:
> On Wednesday 08 January 2003 12:23, Lubos Lunak wrote:
> > On Wednesday 08 of January 2003 00:42, David Faure wrote:
> > > Sure. But the dir's mtime isn't enough information. Some file might
> > > have changed, which doesn't change the dir's mtime.
> >
> >  I think we could check dir's mtime and mtime of all files in it.
>
> Uh... isn't that really slow? Especially with huge directories? That's what
> FAM tries to prevent and the reason (I guess) STAT and DNOTIFY don't do it.
>
> > > You could also check with KIO::probably slow mounted and keep using
> > > KDirWatch when it isn't slow.
> >
> >  I don't fully understand KIO::probably slow mounted() code, but I think
> > it wouldn't detect e.g. mounted cdrom as "slow". But perhaps there could
> > be a similar function KIO::temporarily mounted() which would return false
> > if this entry is in fstab and has the auto option.
>
> That's almost what probably slow mounted already does ;-) Additionally, it
> checks for nfs.
I originally wanted that function for the file dialog when it became cool I 
wanted to switch to the uncool KIO only when out of process directory listing
would unblock the GUI. But then later KIO became cool too, so the function 
was never actually used. That it will be used for the complete opposite is the
irony of history :)

Greetings, Stephan

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic