From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 21:38:17 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 412AD16A44E for ; Sat, 30 Jul 2005 21:38:17 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20B4D43D45 for ; Sat, 30 Jul 2005 21:38:16 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id A33737300128; Sat, 30 Jul 2005 14:37:59 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j6ULdCAm010195; Sat, 30 Jul 2005 14:39:12 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j6ULd2Ux010194; Sat, 30 Jul 2005 14:39:02 -0700 (PDT) (envelope-from garys@opusnet.com) To: Glenn Dawson References: <6.2.5.1.2.20050730073623.00c12950@wixb.com> <6.1.0.6.2.20050730100508.13b4b060@cobalt.antimatter.net> From: garys@opusnet.com (Gary W. Swearingen) Date: Sat, 30 Jul 2005 14:39:02 -0700 In-Reply-To: <6.1.0.6.2.20050730100508.13b4b060@cobalt.antimatter.net> (Glenn Dawson's message of "Sat, 30 Jul 2005 10:08:07 -0700") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org, "J.D. Bronson" Subject: Re: bsdlabel question.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2005 21:38:17 -0000 Glenn Dawson writes: > pp->p_fstype = FS_BSDFFS; > pp->p_fsize = sblock.fs_fsize; > pp->p_frag = sblock.fs_frag; > pp->p_cpg = sblock.fs_fpg; > } > The last line is the one that inserts that number. sblock.fs_fpg is the number of frags per cylinder grounp. Glenn, can you tell me which of those numbers, if any, can be changed after a newfs has been done and the file system well occupied with data? (The lousy sysinstall disk labeler wiped out several of my disk labels and I restored them with zeroes in those fields of the disk label. It worked OK, but I'm guessing it only worked because the "bsdlabel" defaults were the same as they were when I first did "bsdlabel...; newfs...". If defaults had changed or I used non-default values the first time, I'd have been SOL, right? Or do those values just serve as optimization/tuning values for the kernel?)