struct fs_meta {
int tlen;
char *tag;
int dlen;
char *data;
}
fcntl(fd, F_GETTAGS, &meta) /* tag = 0, tlen = # of tags; null-separated */
/* list in data */
/* (or use another structure) */
fcntl(fd, F_[GS]ETMETA, &meta)
Now, the flaw: you also have to change everything that manipulates files to
deal with them. cp, for instance, would copy the file data but not the
metadata; likewise tar. This is the main reason I haven't bothered despite
its potential usefulness (being that I'm an ex-Mac'er *and* a current OS/2
user): it doesn't fit in with the rest of the system at all.
In short, it's not worth the effort.
-- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html