On Tue, 2006-11-28 at 03:54 -0700, Andreas Dilger wrote:
Indeed. It is best to be able to say what the application wants. Have
a look at the Mac OS X getattrlist() system call (note there is a
setattrlist(), too but that is off topic wrt to the stat() function).
You can see the man page here for example:
http://www.hmug.org/man/2/getattrlist.php
This interface btw also is made such that each file system can define
which attributes it actually supports and a call to getattrlist() can
determine what the current file system supports. This allows
applications to tune themselves to what the file system supports that
they are running on...
I am not saying you should just copy it. But in case you were not aware
of it you may want to at least look at it for what others have done in
this area.
Best regards,
Anton
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html