Network Working Group B. Thomas
Request for Comments:
535 BBN-TENEX
NIC:
17454 July 1973
Categories: Protocols, FTP
References:
RFC 520 Comments on File Access Protocol
A file access protocol (FAP) of the sort proposed by John Day in
RFC 520 is a good idea. The following comments suggest improvements
(mostly additions) to the protocol described in
RFC 520.
1. (Philosophical comment) The intent of both FTP and FAP is to
make it possible for a user to remotely access files. In effect,
FTP provides means for a user to have (parts of) file activity of
the sort typically initiated at the command language level
"slaved" across the network to the site where the file resides.
In a similar way the intent of FAP is to provide a mechanism
which allows activity of the sort typically initiated by programs
at the operating system or monitor level to be "slaved" across
the network to the site where the file resides. The OPEN, CLOS,
SETP, etc. commands of FAP can be viewed as attempts to define
"generic" file system monitor calls. The suggestions made below
are further attempts to make features typically available to
local users also available to remote users via FAP.
2. The OPEN command should allow for a third OPEN mode called A for
append. In terms of its action with respect to a file and file
pointer, the command
OPEN A FOO
would be equivalent to the sequence:
OPEN W FOO
SETP E
The difference would be with respect to access control. Many
systems allow a user to control separately write and append
access to a file (e.g., on TENEX a user usually sets the
protection on his MESSAGE.TXT file such that anyone can append to
it but only he can write it). For such systems the append OPEN
would succeed in many cases in which the write OPEN would fail.
The principle here is that FAP (to as large as degree as is
practical) should allow remote users to access files in the same
way as local users may.
HNDL FOO )
6. It is important to take local transformations into account (page
3 of
RFC 520). However, it is equally important to allow a
remote user to suppress local transformations, if he wishes, so
that he can access the file as it is stored. This would enable a
program that manipulates a file to work equally well whether the
file is local (and accessed "directly" via system calls) or
remote (and accessed "indirectly" via system calls that are
"trapped" and transformed into FAP commands which are sent to the
remote site).
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Alex McKenzie with ]
[ support from GTE, formerly BBN Corp. 10/99 ]