Re: adding magic support to afpd


Subject: Re: adding magic support to afpd
From: wesley.craig@umich.edu
Date: Thu Jan 27 1994 - 14:36:51 EST


> From: dkelly@etsinc.com (Dwight Kelly)
> To: netatalk-admins@umich.edu

>
> I am interested in adding /etc/magic support to afpd.
> Basically afpd would consult an extended /etc/magic file
> to determine the file type and creator of an unknown file.
> If afpd could determine the file type, say TIFF, then
> it could create a .AppleDouble entry telling the Mac what
> the file type is really.

We've discussed adding a mapping between file name extensions and
type/creators. We haven't really considered added true /etc/magic
support, since that would require that we read the first few bytes of
each file. We're already reading the first 500 or so bytes of the
.AppleDouble file, and it is the cause of most of the enumerate
overhead. Adding a feature that requires reading even more files for
simple operations seems like the wrong direction, to me.

:wes



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:20:49 EST