From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Subject: Re: QBUS Prototyping
Date: Mon, 19 Apr 2010 21:27:05 +0000 (UTC) [thread overview]
Message-ID: <hqihr9$320$1@naig.caltech.edu> (raw)
In-Reply-To: hqie1v$c8f$1@Iltempo.Update.UU.SE
In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote:
(snip)
> Slight error on my part. The mode where you don't move the data is
> called locate mode in RSX, but the mode where the data is copied a
> second time is called move mode, not transfer mode.
Yes, I believe those are also the names that IBM uses.
(snip)
>>> Ugh! Well, be going with your extended idea of the NFS client having two
>>> ways to deal with files. A naive way of dealing with any unknown files,
>>> and a way to identify "known" files, which are assumed to be compatible
>>> with other RSX files.
>>> And trusting that noone on the NFS server machine ever much around with
>>> the "known" files.
>> It seems that what the z/OS one does is let you add options onto
>> the file name that you specify. It seems that won't work for RSX.
> I don't know, but probably difficult.
One more thought. You have one additional way to pass data through,
and that is through the version number. You could have opens
with specific (probably high) version numbers have special meaning.
Some might request the translations that have been discussed here.
(snip)
> That's still pretty common. But you don't need physical access.
> Normally, around where I've been, the machine exporting files over NFS
> have been machines that you also could log in to.
> Also, assuming another Unix box mount the same file system, the whole
> innards will be exposed to that client as well, and possible to
> manipulate by users there.
Well, there you have file protection, which you may or may
not use.
(snip)
>> According to the
>> man page, only superusers can create hard links to directories,
>> but I knew (was allowed to know) the root password. As soon
>> as I created the hard link to a directory the file server died.
(snip)
> He. I have (had) a similar story about creating a hard link to a
> directory. Never tried to do it over NFS, but I did it on a local file
> system on SunOS. Everything was fine until we removed the directory, at
> which point things started looking very strange.
> Had to reboot, and let fsck repair the bloody thing. :-)
Oh, yes, that is it. It runs fsck as it boots (systems were slower
than now) and when it finally comes up the client retries the failed
link.
(regarding tar and zip...)
>> Well, it is just C, so should not be hard to do.
> Well, as long as you don't care what the end result is, sure...
> But assuming you extract a file from a tar archive, how should it be
> extracted? As a text file? Binary? Record lengths?
> As you see, it comes down to parts of the same problem as with NFS. It
> is simpler through, in that you are not expecting other programs to
> access it on the fly, or randomly, so there are some things you don't
> care about (such as seeking in the converted result).
OS/2 has extended attributes, NTFS has something similar, though
I don't remember how it works. NTFS can also do the Macintosh
resource fork within its file system.
(snip)
>> I know about VMS zip, but have never used it.
> Used it, and it works the way you would expect and want. Files get
> cipped/unzipped along with the VMS specific attributes.
> I haven't checked what happens if you extract a ZIP-file created on some
> other OS though.
>>>>> And this in turn is then translated into a File ID, which is a 48-bit
>>>>> number, consisting of 3 16-bit parts, which is what all file operations
>>>>> are using when doing file operations. The FileID is very similar to the
>>>>> i-node number in Unix.
(snip)
>>> NFS basically will have to support access by inode numbers, or RSX will
>>> work very badly on an RSX client, as it is not that uncommon for
>>> programs to actually open files by file id, and not filename.
>> It seems that all NFS operations use a file handle which is opaque
>> to the client. I believe that unix (and similar) systems use the
>> inode number as part of the file handle. (Other parts need
>> to identify the specific file system it applies to.)
OK, NFS does everything by file handle which is 32 bytes (128 bits)
for NFSv2, and variable length up to 64 bytes (256 bits) for NFSv3.
It has to be big enough to include whatever the underlying server
file system needs, in addition to identifying the file system itself.
Also, I think they can change on client reboot (remount), so probably
they shouldn't be saved in other places.
> This could be ugly... A program that want to open a file in RSX reads in
> the directory file itself, and thereby locates the file entry, and the
> corresponding file id. It then open the file, using that file id.
That sounds similar to NFS, though usually you do LOOKUP with
the desired name and the server does the actual search. You could
read the directory, though, and pass that through. You would then
need a hash table to convert between the 48 bit values and NFS file
handles.
> It can also store the file id, and reuse it later to open the same file.
> Also, there are a few file ids that are reserved, and essential for
> anything to work, such as file id (4,4,0), which is the MFD (root
> directory in Unix-speak). This is how a program finds a file. It starts
> by opening file (4,4,0), and then traverse down directories from there.
> (And yes, the MFD do exist in itself, normally under the name 000000.DIR)
> I would have to fake directory files for RSX, but I need to populate
> them with filename, *and* file ids. And the file ids must then match
> back to the filenames. I guess I could keep a translation table for
> this, but that table could become very large...
Or, as I said earlier, map the whole file system onto one
big file in NFS. Hard for others to read, but easier for the
client to do things its own way.
If I ever get to a CP/M version, that is the way the first one
will work. That is the only way it can be done without changing
the BDOS. (For similar reasons.)
-- glen
next prev parent reply other threads:[~2010-04-19 21:27 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 13:52 QBUS Prototyping Bill Gunshannon
2010-04-08 14:38 ` Scott Dorsey
2010-04-08 14:58 ` Al Kossow
2010-04-08 15:44 ` Bill Gunshannon
2010-04-08 20:46 ` John Wallace
2010-04-08 21:01 ` Bill Gunshannon
2010-04-08 21:58 ` Rob Jarratt
2010-04-08 23:00 ` John Wallace
2010-04-09 11:22 ` David Riley
2010-04-09 18:08 ` Johnny Billquist
2010-04-09 18:22 ` Bill Gunshannon
2010-04-10 19:29 ` Johnny Billquist
2010-04-10 21:05 ` Bill Gunshannon
2010-04-11 9:50 ` Johnny Billquist
2010-04-11 14:13 ` Bill Gunshannon
2010-04-09 19:20 ` glen herrmannsfeldt
2010-04-11 22:08 ` Dennis Boone
2010-04-12 11:41 ` dsnyder
2010-04-12 14:46 ` Al Kossow
2010-04-13 11:08 ` dsnyder
2010-04-15 17:27 ` Scott Dorsey
2010-04-15 18:29 ` Al Kossow
2010-04-09 19:14 ` glen herrmannsfeldt
2010-04-09 20:02 ` John Wallace
2010-04-09 20:28 ` David Riley
2010-04-10 1:28 ` glen herrmannsfeldt
2010-04-14 22:28 ` Bob Koehler
2010-04-08 21:59 ` glen herrmannsfeldt
2010-04-08 22:38 ` Bill Gunshannon
2010-04-11 10:16 ` glen herrmannsfeldt
2010-04-11 14:24 ` Bill Gunshannon
2010-04-11 17:10 ` glen herrmannsfeldt
2010-04-12 21:25 ` Johnny Billquist
2010-04-12 22:02 ` John Wallace
2010-04-13 7:34 ` Johnny Billquist
2010-04-19 2:25 ` John Santos
2010-04-19 11:50 ` John Wallace
2010-04-19 10:50 ` VAXman-
2010-04-24 14:55 ` Bill Gunshannon
2010-04-12 22:33 ` glen herrmannsfeldt
2010-04-13 7:53 ` Johnny Billquist
2010-04-13 12:01 ` glen herrmannsfeldt
2010-04-16 23:44 ` Johnny Billquist
2010-04-17 3:15 ` glen herrmannsfeldt
2010-04-17 21:00 ` Johnny Billquist
2010-04-18 0:31 ` glen herrmannsfeldt
2010-04-18 13:23 ` Johnny Billquist
2010-04-18 16:58 ` glen herrmannsfeldt
2010-04-18 23:02 ` Johnny Billquist
2010-04-19 1:39 ` glen herrmannsfeldt
2010-04-19 20:22 ` Johnny Billquist
2010-04-19 21:27 ` glen herrmannsfeldt [this message]
2010-04-20 19:36 ` Hans Bachner
2010-04-24 15:36 ` Steven Schweda
2010-04-25 3:55 ` Johnny Billquist
2010-04-25 5:32 ` Steven Schweda
2010-04-25 11:33 ` Johnny Billquist
2010-04-25 12:17 ` glen herrmannsfeldt
2010-04-25 13:31 ` Johnny Billquist
2010-04-25 14:01 ` Steven Schweda
2010-04-25 21:58 ` Johnny Billquist
2010-04-25 13:58 ` Steven Schweda
2010-04-25 21:47 ` Johnny Billquist
2010-04-26 15:40 ` Bob Koehler
2010-04-27 7:37 ` Johnny Billquist
2010-04-27 7:58 ` Bob Eager
2010-04-27 14:56 ` Bob Koehler
2010-04-28 9:06 ` Johnny Billquist
2010-04-28 12:34 ` Bob Eager
2010-04-28 14:51 ` Bob Koehler
2010-04-29 0:18 ` Johnny Billquist
2010-04-29 15:16 ` Bob Koehler
2010-04-27 14:53 ` Bob Koehler
2010-04-28 9:11 ` Johnny Billquist
2010-04-28 14:52 ` Bob Koehler
2010-04-29 0:20 ` Johnny Billquist
2010-04-29 1:15 ` Johnny Billquist
2010-04-29 7:01 ` John Wallace
2010-04-29 11:19 ` Jerome H. Fine
2010-04-29 18:38 ` glen herrmannsfeldt
2010-04-29 19:53 ` Jerome H. Fine
2010-04-29 20:35 ` glen herrmannsfeldt
2010-04-29 21:43 ` Bob Eager
2010-04-30 0:23 ` Johnny Billquist
2010-04-30 1:39 ` glen herrmannsfeldt
2010-04-30 0:19 ` Johnny Billquist
2010-04-30 15:04 ` Bob Koehler
2010-04-30 0:09 ` Johnny Billquist
2010-04-30 0:51 ` Johnny Billquist
2010-04-30 0:58 ` Johnny Billquist
2010-04-30 11:44 ` Jerome H. Fine
2010-04-30 14:59 ` Bob Koehler
2010-04-30 18:34 ` glen herrmannsfeldt
2010-04-29 15:19 ` Bob Koehler
2010-04-30 0:42 ` Johnny Billquist
2010-04-30 0:04 ` Johnny Billquist
2010-04-29 15:17 ` Bob Koehler
2010-04-27 15:43 ` jjh
2010-04-27 16:04 ` Richard B. Gilbert
2010-04-28 9:20 ` Johnny Billquist
2010-04-28 16:12 ` Richard B. Gilbert
2010-04-27 22:27 ` Bob Koehler
2010-04-28 9:18 ` Johnny Billquist
2011-04-18 13:00 ` Bob Koehler
2011-04-18 15:06 ` Johnny Billquist
2011-04-18 12:56 ` Bob Koehler
2011-04-18 15:07 ` Johnny Billquist
2011-04-18 17:26 ` Michael Moroney
2011-04-18 17:53 ` Bob Koehler
2011-04-19 3:35 ` Johnny Billquist
2011-04-19 15:34 ` Michael Moroney
2011-04-19 16:47 ` Johnny Billquist
2011-04-18 17:49 ` Bob Koehler
2011-04-19 3:36 ` Johnny Billquist
2011-04-18 12:52 ` Bob Koehler
2011-04-18 15:11 ` Johnny Billquist
2011-04-18 17:51 ` Bob Koehler
2011-04-19 10:29 ` FTP is 40 years old Paul Sture
2010-04-09 14:39 ` QBUS Prototyping Bob Koehler
2010-04-09 16:00 ` Bill Gunshannon
2010-04-09 23:16 ` John E. Malmberg
2010-04-15 6:12 ` Antti Louko
2010-04-15 16:24 ` Run.PDP
2010-04-15 16:46 ` Al Kossow
2010-04-15 17:24 ` glen herrmannsfeldt
2010-04-15 17:20 ` glen herrmannsfeldt
2010-04-16 23:54 ` Johnny Billquist
2010-04-16 21:59 ` Bob Koehler
2010-04-16 23:56 ` Johnny Billquist
2010-04-17 9:24 ` jjh
2010-04-17 9:56 ` glen herrmannsfeldt
2010-04-17 21:04 ` Johnny Billquist
2010-04-24 15:54 ` Bill Gunshannon
2010-04-24 15:52 ` Bill Gunshannon
2010-04-25 4:00 ` Johnny Billquist
2010-04-25 6:29 ` glen herrmannsfeldt
2010-04-25 7:42 ` Wilm Boerhout
2010-04-25 19:57 ` Antti Louko
2010-04-25 11:40 ` Johnny Billquist
2010-04-25 21:47 ` John Wallace
2010-04-26 0:32 ` Johnny Billquist
2010-04-15 17:19 ` Scott Dorsey
2010-04-09 1:00 ` Richard
2010-04-09 11:34 ` David Riley
2010-04-09 21:24 ` Richard
2010-04-08 20:18 ` JF Mezei
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox