Quaisquer alternativas aos diretórios [fechadas]

0

Algum exemplo de computadores (antigos ou modernos) que não utilizem diretórios ou caminhos de diretórios? Em caso afirmativo, qual arquitetura foi / é usada em vez disso? Apenas curioso.

    
por user6470814 29.08.2016 / 04:16

1 resposta

0

O PDP-7 Unix usou uma forma diferente de diretórios (não a hierarquia de árvore regular):

The Evolution of the Unix Time-sharing System

Dennis M. Ritchie

[...]

In spite of its considerable similarity to the current file system, the PDP-7 file system was in one way remarkably different: there were no path names, and each file-name argument to the system was a simple name (without '/') taken relative to the current directory. Links, in the usual Unix sense, did exist. Together with an elaborate set of conventions, they were the principal means by which the lack of path names became acceptable.

The link call took the form

link(dir, file, newname)

where dir was a directory file in the current directory, file an existing entry in that directory, and newname the name of the link, which was added to the current directory. Because dir needed to be in the current directory, it is evident that today's prohibition against links to directories was not enforced; the PDP-7 Unix file system had the shape of a general directed graph. So that every user did not need to maintain a link to all directories of interest, there existed a directory called dd that contained entries for the directory of each user. Thus, to make a link to file x in directory ken, I might do

ln dd ken ken
ln ken x x
rm ken

This scheme rendered subdirectories sufficiently hard to use as to make them unused in practice. Another important barrier was that there was no way to create a directory while the system was running; all were made during recreation of the file system from paper tape, so that directories were in effect a nonrenewable resource.

The dd convention made the chdir command relatively convenient. It took multiple arguments, and switched the current directory to each named directory in turn. Thus

chdir dd ken

would move to directory ken. (Incidentally, chdir was spelled ch; why this was expanded when we went to the PDP-11 I don't remember.)

    
por 29.08.2016 / 10:44