diff options
author | bde <bde@FreeBSD.org> | 1997-07-13 15:13:07 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-07-13 15:13:07 +0000 |
commit | b3990a1b1f10e82cc456af56bf8b178e5944715f (patch) | |
tree | 9344e83d5e203e0c1dc8796610b325264e95f9b5 /sbin/newfs/mkfs.c | |
parent | a70c3f0a2c047fa3f71ee23b113f06bf3fc3e9bc (diff) | |
download | FreeBSD-src-b3990a1b1f10e82cc456af56bf8b178e5944715f.zip FreeBSD-src-b3990a1b1f10e82cc456af56bf8b178e5944715f.tar.gz |
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.
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index f36bcfd..c95183a 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -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. |