From owner-freebsd-current@FreeBSD.ORG Wed Apr 30 00:53:08 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 997AB37B401 for ; Wed, 30 Apr 2003 00:53:08 -0700 (PDT) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58CCA43F3F for ; Wed, 30 Apr 2003 00:53:07 -0700 (PDT) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id h3U7qujV136254; Wed, 30 Apr 2003 09:53:00 +0200 Date: Wed, 30 Apr 2003 09:52:56 +0200 (CEST) From: Lukas Ertl To: Alex Popa In-Reply-To: <20030429222450.GA59203@ldc.ro> Message-ID: <20030430095225.H24892@pcle2.cc.univie.ac.at> References: <20030426225533.R743@leelou.in.tern> <20030429222450.GA59203@ldc.ro> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-DCC-ZID-Univie-Metrics: mailbox 4251; Body=2 Fuz1=2 Fuz2=2 cc: freebsd-current@freebsd.org Subject: Re: newfs for UFS2 problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 07:53:08 -0000 On Wed, 30 Apr 2003, Alex Popa wrote: > Hello, sorry for the delay in testing and answering. > > The patch seems to work with a little modification, deduced from this: > lib/libufs/block.c, line 80: > > bwrite(struct uufsd *disk, ufs2_daddr_t blockno, const void *data, size_t= size) > ... > cnt =3D pwrite(disk->d_fd, data, size, (off_t)(blockno * disk->d_bsize)); > ... > > It look that it multiplies by a block size. However, in > sys/ufs/ffs/fs.h, lines 68-69 mention the superblock offset is defined > in bytes, not blocks. Ah, thanks for the correction! I'm gonna submit this patch soon. best regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX-Systemadministrator Tel.: (+43 1) 4277-14073 Zentraler Informatikdienst (ZID) Fax.: (+43 1) 4277-9140 der Universit=E4t Wien http://mailbox.univie.ac.at/~le/