From owner-freebsd-hackers Sun Jan 7 19:57:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA09229 for hackers-outgoing; Sun, 7 Jan 1996 19:57:16 -0800 (PST) Received: from gateway.sequent.com (gateway.sequent.com [138.95.18.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA09221 for ; Sun, 7 Jan 1996 19:57:08 -0800 (PST) Received: from eng4.sequent.com (eng4.sequent.com [138.95.7.64]) by gateway.sequent.com (8.6.12/8.6.9) with ESMTP id TAA03804; Sun, 7 Jan 1996 19:55:42 -0800 Received: from localhost (bjj@localhost) by eng4.sequent.com (8.6.12/8.6.9) with SMTP id TAA11113; Sun, 7 Jan 1996 19:56:33 -0800 Message-Id: <199601080356.TAA11113@eng4.sequent.com> X-Authentication-Warning: eng4.sequent.com: Host localhost didn't use HELO protocol To: Wilko Bulte Cc: roberto@keltia.freenix.fr (Ollivier Robert), mrcpu@cdsnet.net, hackers@freebsd.org Subject: Re: Number of superblocks on big disks. In-reply-to: Your message of "Sun, 07 Jan 96 21:33:57 PST." <199601072033.VAA02775@yedi.iaf.nl> Date: Sun, 07 Jan 96 19:56:32 PST From: Ben Jackson Sender: owner-hackers@freebsd.org Precedence: bulk In message <199601072033.VAA02775@yedi.iaf.nl> , you wrote: > > Ever used SunOS's newfs to make a 2 GB partition ? *That* takes > > forever. FreeBSD's newfs is blazingly fast in comparison :-) > > I think SunOS does some kind of inode randomisation. Supposedly to > get better NFS security ?? There is an NFS attack that involves guessing the filehandles of the files you want. Since a fh is based on the inode number, Sun did make this harder by randomizing the inodes. I doubt this is really why it takes longer, though. A quick look at the source to FreeBSD newfs suggests that contrary to the manual page, we default to `-i 4096'*, wheras SunOS is defaulting to `-i 2048', which would spend twice as much time writing inodes. * fsize defaults to pp->p_fsize, which defaults to 1k, and density defaults to NFPI (4) * fsize => 4096. --Ben