UFS2 max limits?
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Sun Nov 13 18:25:02 GMT 2005
John-Mark Gurney wrote this message on Sun, Nov 13, 2005 at 10:17 -0800:
> as for the file size, The approximate max can be calculated by
> (blocksize / sizeof(ufs2_daddr_t)) ^ 3 * blocksize
> the real max would add in addition:
> (blocksize / sizeof(ufs2_daddr_t)) ^ 2 * blocksize +
> (blocksize / sizeof(ufs2_daddr_t)) * blocksize +
> 9 * blocksize
^
ack, I miss remebered, I knew I needed to check this before I sent the
email:
!!grep define.*N[DI]ADDR /usr/include/ufs/ufs/dinode.h
#define NDADDR 12 /* Direct addresses in inode. */
#define NIADDR 3 /* Indirect addresses in inode. */
The 9 above should be 12...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-hackers
mailing list