Re: newfs for UFS2 problems

From: Lukas Ertl <l.ertl_at_univie.ac.at>
Date: Wed, 30 Apr 2003 09:52:56 +0200 (CEST)
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 = 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

-- 
Lukas Ertl                             eMail: l.ertl_at_univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien                   http://mailbox.univie.ac.at/~le/
Received on Tue Apr 29 2003 - 22:53:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:05 UTC