[TUHS] Unix v6 File System information
Random832
random832 at fastmail.com
Mon Feb 22 04:36:19 AEST 2016
On Sun, Feb 21, 2016, at 12:50, Noel Chiappa wrote:
> > From: Random832
>
> > They're 24 bits, aren't they?
>
> Not according to the source:
>
> typedef long daddr_t;
>
> daddr_t s_fsize; /* size in blocks of entire volume */
> short s_nfree; /* number of addresses in s_free */
> daddr_t s_free[NICFREE];/* free block list */
>
> (from param.h and filsys.h respectively).
That's the superblock. Look in ino.h.
/*
* the 40 address bytes:
* 39 used; 13 addresses
* of 3 bytes each.
*/
Which means you can't actually have a filesystem of more than 2^24-1
blocks.
More information about the TUHS
mailing list