HP3000-L Archives

February 1997, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Mon, 24 Feb 1997 14:56:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
Stan writes:

>How about FTP, which knows (because you told it) whether the file
>is to be treated as ASCII or BINARY?

FTP can get this behavior for free, if the POSIX library and/or the file
system support Gavin's flags. This would certainly be nice.

My point was just that a file server program (e.g., Samba) can't really
make use of the flags when it's reading a file on behalf of a client,
because of the risk of data corruption. Unlike FTP, which is operated by
someone who knows that a file transfer is taking place, a server may be
hidden behind several layers. There is no margin for error, as there is
with FTP. (One web site I maintain on a remote Unix box that's
NFS-mounted on our Unix box, then exported via AppleShare. That's two
layers of file server protocols, plus three file system layers.)

Also, there's no provision in any file server protocol with which I'm
familiar (SMB, NFS, and AFP) for a client to specify a translation
option, so there's no way for the client to say, "no, really, don't
translate this file even if you think you should."

Gavin's idea for a set of flags to indicate the preferred line
termination for the file is clearly a good one, since it will solve the
DOS-to-MPE translation problem. But there isn't a safe way to solve all
MPE-to-external problems. Incidentally, when SMB serves a plain MPE file,
it should be able to look at the FOPTIONs and make an appropriate and
safe translation, thanks to the fact that MPE stores a lot more
descriptive information about a file than does the POSIX world.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
[log in to unmask]                   |     -- Edna St. Vincent Millay

ATOM RSS1 RSS2