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:
parent
50c1a7cdeb
commit
99da1bcc54
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user