Skip to contentSkip to conversation

Alright, I give up. What does the "i" in "inode" stand for?

DISCUSSION Jesse Pollard 2 participants 2 messages Jul 19, 2002 – Jul 30, 2002

lore
Share & tools
lore
#0 lore raw

CaT <[email protected]>:

Quoted 6 lines · Larry McVoy
Quoted 5 lines · Rob Landley
Quoted 3 lines

I've been sitting on this question for years, hoping I'd come across the answer, and I STILL don't know what the "i" is short for. Somebody here has got to know this. :)

Quoted 7 lines
Quoted 2 lines

Incore node, I believe. In the original Unix code there was dinode and inode if I remember correctly, for disk node and incore node.

That's a new one. I always thought it was 'information node' so in the above it'd be disk information node and just information node.

Makes sense to me in any case. :)

I believe the original description was "index node" since it contains the contents of the file index - dinode was the disk resident file index node, which is converted to the memory resident version "inode".

This index node also contains the index references to the disk blocks allocated to the file.

In even earlier OSs (DEC RSX, TOPS 10) the file index table was actually a file in the filesystem (usually named index.idx (or was it file.idx...). I don't know what it was called in MULTICs where the UNIX varient would have started.

Most of these filesystems were based on contigeuous allocation, or allocations of contigeous segments. Hence the first file on the system would be a contigeuous file, containing the references to all files. Since it was contiguous, the files could be referenced directly by index, without requiring special handling to retrieve pointers to where the next segment of the index file - which is still true for most filesystems under UNIX (the really large ones are moving to tree structures which require multiple lookups just to find the inode entry...). Directory structures (at least on the ones I worked with) contained:
index number, version, name
triples.

Note - the version number had nothing to do with the file version - it was used to aid file recovery and was only a reuse count of the index node. The index node contents had to have the same version number as the directory entry, or the directory entry was considered invalid. The file name was a rad50, or sixbit (packed) characters, and sometimes was stored in both inode and directory - again, for rebuilding the file system.

The pointers in the index node were (block, count) pairs where the count was the number of blocks in the segment, starting at "block" location. When the list of pointers in the index node were used up, the last entry would be another (index number, version) pair pointing to another index node.

This made it fairly fast for I/O since large chunks of the file could be loaded in one disk access. Faster access could be had by preallocating the file (useing the copy utility with a "contig" option).

Fragmentation, however, did force a relatively frequent backup/restore cycle (took all afternoon on the first Saturday of every month for 8 80MB disks).

Sorry - irrestable nostalgia struck....
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own.

#1 lore raw

On Fri, 19 Jul 2002, Jesse Pollard wrote:
[snip]

Quoted 2 lines

In even earlier OSs (DEC RSX, TOPS 10) the file index table was actually a file in the filesystem (usually named index.idx (or was it file.idx...).

INDEXF.SYS, on TOPS-10.

Quoted 6 lines

I don't
know what it was called in MULTICs where the UNIX varient would have started.

Most of these filesystems were based on contigeuous allocation, or allocations of contigeous segments.

"Extents". "Segments" were contiguous hunks of real memory that the MMU knew about, then as now.

TOPS-20 used pagemaps. A file on disk had a pagemap block filled with special invalid PTEs which pointed to the data blocks. To open a file, locate its pagemap and page that in, then make references through it and the pager will pull in the data for you and update the map page. (This is all separate from mapping a file over *process* virtual memory, but I seem to recall that PMAP% borrowed a lot of code from the disk I/O subsystem in this case. It's been 20 years, though....) TOPS-20 happily scattered file blocks all over the volume-set if need be.

[snip]

Quoted 6 lines

Note - the version number had nothing to do with the file version - it was used to aid file recovery and was only a reuse count of the index node. The index node contents had to have the same version number as the directory entry, or the directory entry was considered invalid. The file name was a rad50, or sixbit (packed) characters, and sometimes was stored in both inode and directory - again, for rebuilding the file system.

No, RAD50 and SIXBIT are different. You can (de)compose SIXBIT words with simple shift-and-mask operations, but RAD50 requires arithmetic. (Hmmm, on TOPS-10 we called it RADIX50, so maybe it's different.)

Signature · 3 lines
Mark H. Wood, Lead System Programmer   [email protected]
Who just last weekend rediscovered an MF10 core-plane hiding in the filing
cabinet.