Proposal: Extended Attribute support in Kioslave: File

John Tapsell johnflux at
Fri May 5 19:21:52 BST 2006

  Could you also add a function to return the size of the file on
disk.  I have filed a bug/wish against qt for this, but I doubt it
will be done in QFile.  If you are working in this area could you add
it to the kioslave instead?  This is particulary useful for those of
us who have sparse files.

If you aren't sure exactly how to do it I can offer some pointers.
(Basically use stat to get the number of blocks it uses and multiple
by block size)


On 5/5/06, David Faure <faure at> wrote:
> On Friday 05 May 2006 08:31, Daniel Nakata wrote:
> > As an initial step toward my goal of saturating KDE with support for extended
> > attributes, I'd like to suggest the following modifications to the kdelibs
> > codebase:
> >
> > 1) Add --enable-xattr to configure(.in(.in)), and have it define HAVE_XATTR,
> > if -lattr works (libattr is available).  If so, add "-lattr" to LIBS.
> In trunk we use cmake, so no anymore.
> In any case we check for libattr anymore (in both kde3 and kde4), due to the ACL support.
> We don't check for attr/xattr.h though, but for sys/xattr.h...
> > How does this sound?  I'm willing to write it up if there's a chance it would
> > make it into KDE officially.
> This sounds good for kdelibs trunk (kde4).
> --
> David Faure, faure at, sponsored by Trolltech to work on KDE,
> Konqueror (, and KOffice (

More information about the kde-core-devel mailing list