From owner-cvs-all Sun Jan 26 22:40:41 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43C2337B405 for ; Sun, 26 Jan 2003 22:40:40 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0EE9843F13 for ; Sun, 26 Jan 2003 22:40:39 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 84358 invoked by uid 1000); 27 Jan 2003 06:40:40 -0000 Date: Sun, 26 Jan 2003 22:40:40 -0800 (PST) From: Nate Lawson To: Juli Mallett Cc: cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: cvs commit: src/lib/libufs sblock.c In-Reply-To: <20030127015719.C98C937B4B6@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 26 Jan 2003, Juli Mallett wrote: > jmallett 2003/01/26 17:57:15 PST > > Modified files: > lib/libufs sblock.c > Log: > If we don't know where the sblock is (e.g. filling out a blank disk), then > get it from the fs structure. > > + if (!disk->d_sblock) { > + disk->d_sblock = disk->d_fs.fs_sblockloc / disk->d_bsize; > + } Please fix this for the "new" way where sblockloc is in bytes, not blocks. For information on how to parse it, check sys/ufs/ffs/ffs_vfsops.c in ffs_oldfscompat*(). There are a couple of stages a sb can currently be in, based on when the fs was created. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message