From owner-cvs-all Sun Jan 26 23: 4:39 2003 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 989F137B401; Sun, 26 Jan 2003 23:04:38 -0800 (PST) Date: Sun, 26 Jan 2003 23:04:38 -0800 From: Juli Mallett To: Nate Lawson Cc: cvs-all@freebsd.org, cvs-committers@freebsd.org Subject: Re: cvs commit: src/lib/libufs sblock.c Message-ID: <20030126230438.A39273@FreeBSD.org> References: <20030127015719.C98C937B4B6@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nate@root.org on Sun, Jan 26, 2003 at 10:40:40PM -0800 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes 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 * De: Nate Lawson [ Data: 2003-01-26 ] [ Subjecte: Re: cvs commit: src/lib/libufs sblock.c ] > 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. disk->d_bsize is 1 when the filesystem is in bytes, for newfs, it's sectors. -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet. OpenDarwin, Mono, FreeBSD Developer. ircd-hybrid Developer, EFnet addict. FreeBSD on MIPS-Anything on FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message