diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-19 16:22:19 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-19 16:22:19 +0000 |
commit | e6b97ebf903a720407574154e9d255be05af6a78 (patch) | |
tree | f73bf1383c88151e3e7918ff10a5893bf89ee82d /sys/ufs/ffs/ffs_vfsops.c | |
parent | 41d17e79c339aa7b59c1b00e6d2603868d348f2e (diff) |
Cleanup dirpref and synhronize superblock with freebsd.
From FreeBSD with little changes.
art@ ok.
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index cbeee670a6c..88fcc43e0fd 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_vfsops.c,v 1.39 2001/04/15 23:46:29 gluk Exp $ */ +/* $OpenBSD: ffs_vfsops.c,v 1.40 2001/04/19 16:22:17 gluk Exp $ */ /* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */ /* @@ -807,6 +807,10 @@ ffs_oldfscompat(fs) fs->fs_qbmask = ~fs->fs_bmask; /* XXX */ fs->fs_qfmask = ~fs->fs_fmask; /* XXX */ } /* XXX */ + if (fs->fs_avgfilesize <= 0) /* XXX */ + fs->fs_avgfilesize = AVFILESIZ; /* XXX */ + if (fs->fs_avgfpdir <= 0) /* XXX */ + fs->fs_avgfpdir = AFPDIR; /* XXX */ return (0); } |