Commit 3965e41
mancausoft
lookup: report VMS file number as inode
DIR/FILE_ID on VMS shows the (num, seq, rvn) tuple, and users
identify a file header by the first component (the file number).
Make ls -i match that: INDEXF.SYS is inode 1, BITMAP.SYS is 2,
000000.DIR (MFD) is 4, and so on.
The previous packing put fid$w_seq into the low bits beyond num,
so even small file numbers came out as five- or six-digit inodes
that didn't line up with anything a VMS-savvy user would recognise.
For a single-volume read-only mount the file number alone is
already unique (slot reuse requires a deassign which we can't
observe while mounted). rvn is still folded in above bit 24 so
volume sets don't alias file 1 across RVNs.1 parent df0bb15 commit 3965e41
1 file changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments