Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2003 09:52:56 +0200 (CEST)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        Alex Popa <razor@ldc.ro>
Cc:        freebsd-current@freebsd.org
Subject:   Re: newfs for UFS2 problems
Message-ID:  <20030430095225.H24892@pcle2.cc.univie.ac.at>
In-Reply-To: <20030429222450.GA59203@ldc.ro>
References:  <20030426225533.R743@leelou.in.tern> <20030429222450.GA59203@ldc.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030430095225.H24892>