Message info
 
To:PCMan From:Stef Bon Subject:Re: Suggestion to keep the type of a file or directory in the stat field st_rdev. Date:Sun, 18 Mar 2012 16:31:01 +0100
 

Using Xattr is also possible.

But keep in mind that storing this kind of information in extended attributes
will result in two extra calls per file or directory, while when
storing this in the rdev field no extra calls are required. And why
use xattr when the rdev field is available?

Still the storing of the type of the file or directory is the storing
of an numerical value.

Stef




2012/3/17 PCMan <pcman.tw@gmail.com>:
> Can't xattr be used for this purpose?
> IIRC storing mime-types in xattr is proposed long time ago.
> However, most applications do not seem to use this.
> Though it might be less efficient than a numeric id, this might be a more
> portable way than using the rdev hack.
>
_______________________________________________
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg