Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2002 16:42:14 +0200
From:      Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
To:        freebsd-stable@freebsd.org
Subject:   newfs now defaults to fragsize == blksize == 16k?!?
Message-ID:  <20020524164214.A8063@deejai2.mch.fsc.net>

next in thread | raw e-mail | index | archive | help
Hello all,

I built a 40GB disk into my FreeBSD-4.6-PRERELEASE yesterday and
did the suggested fdisk -- disklabel -- newfs procedure to
partition it. After starting to mount and copy stuff, I was
astonished to see that some file systems ran out of inodes, and others
(when copied from a smaller file system on the old disk) would
increase from 1.7GB to almost 3GB used space.

Closer analysis showed me that the default fragsize in newfs
seems to be 16kB now (identical to blksize). :-((

That cannot be the intention of the author, and it isn't described
in the man pages either. The default fragsize is supposed to be 2048
(1/8 of the blksize) and manually setting this value reverts to the
expected behavior (no wasted space, enough inodes).

Did anybody else notice this?

   Martin
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>         |     Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730  Munich,  Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020524164214.A8063>