A KDE-way to know if a file is sequential/non-random
David Faure
faure at kde.org
Fri May 29 13:08:36 BST 2009
On Tuesday 26 May 2009, Darío Andrés wrote:
> Hi everyone.
>
> I was developing some fixes for hangs that occur when some
> applications try to access special files like pipes, or char/block
> devices.
> http://reviewboard.kde.org/r/723/
> The patch in that review proposal will fix the hang locally (on
> KPropertiesDialog) (btw: Dolphin tooltips also suffer this issue)
>
> kdepepo and I were thinking about doing this globally on KFileItem /
> KFileMetaInfo so every app accessing the metainfo of a file will not
> block the whole application.
>
> I was wondering what is the best way / methods to check that..
> Currently my patch is using "S_ISFIFO"/CHR/BLK but we were wondering
> if a KDE function like "isRegularFile" exists (or it should be
> created).
KFileItem::isRegularFile, which tests S_ISFIFO etc. on the data it
got from kio or from local stat(), sounds like a good plan indeed.
--
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list