Removed "hack to prevent overflow of a 32bit block number". Lite2 has a

better hack in ffs_vfsops.c.  The hack here restricted the maximum file
size to 2^39 bytes (512GB).  fs_bsize * 2^31 - 1 (16TB for the default
blocksize of 8K) would have been better.  There is no good way to remove
this limit on old BSD4.4 file systems.
This commit is contained in:
Bruce Evans 1997-07-13 15:13:07 +00:00
parent 354fb38542
commit 28596d2346
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27372

View File

@ -127,8 +127,8 @@ int fsi, fso;
int randinit;
#endif
daddr_t alloc();
static int charsperline();
long calcipg();
static int charsperline();
mkfs(pp, fsys, fi, fo)
struct partition *pp;
@ -311,8 +311,6 @@ mkfs(pp, fsys, fi, fo)
sizepb *= NINDIR(&sblock);
sblock.fs_maxfilesize += sizepb;
}
/* XXX - hack to prevent overflow of a 32bit block number */
sblock.fs_maxfilesize = MIN(sblock.fs_maxfilesize, (u_quad_t) 1 << 39);
/*
* Validate specified/determined secpercyl
* and calculate minimum cylinders per group.