newfs: useless/bogus check if new last block can be accessed?

Lukas Ertl l.ertl at
Sat May 10 15:01:01 PDT 2003

On Sat, 10 May 2003, Juli Mallett wrote:

> * Ian Dowse <iedowse at> [ Date: 2003-05-10 ]
> > What is using libufs's bwrite()? Would it be better to just make
> > errors fatal for now so that a useful diagnostic can be printed?
> Everything using libufs*.  That means every fs tool

A quick grep showed badsect, dumpfs, newfs and tunefs use libufs - of
course, as you already mentioned, dumpfs doesn't do writes.

> except for the growfs and related tools, which I seem to recall rely on
> a lot of voodoo.

BTW, growfs needs some fixes, too (bin/51138).

> clri does in my tree, but I don't know if I ever merged it back in.

No, clri ist currently not on the list.

> But really you want something like ufserr() from other libufs
> consumers, except without lossage of errno (some or all may do
> this, I forget).

You mean ufserr() as currently in dumpfs?


Lukas Ertl                             eMail: l.ertl at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien         

More information about the freebsd-fs mailing list