Re: Implementing Meta File information in Linux

H. Peter Anvin (hpa@transmeta.com)
25 Aug 1998 07:32:08 GMT


Followup to: <199808250052.UAA07561@hilfy.ece.cmu.edu>
By author: "Brandon S. Allbery KF8NH" <allbery@kf8nh.apk.net>
In newsgroup: linux.dev.kernel
>
> In message <35E178D3.CBFC4174@flashnet.it>, "Sebastiano Tine'" writes:
> +-----
> | For my final work in the course of computer scienze at the faculty of enginering
> | of "Universita La sapienza" in Rome (ITALY), i studing the of implementing in
> | the linux kernel a feature similiar tu Apple MacOS resource fork or IBM OS/2
> | Extended Attributes.
> +--->8
>
> 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.
>

And if it was, it would be cleaner implemented as a directory;
presumably with a "I'm really a multi-fork file" flag on it.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- 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