newfs for UFS2 problems
Lukas Ertl
l.ertl at univie.ac.at
Wed Apr 30 00:53:08 PDT 2003
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/
More information about the freebsd-current
mailing list