Subject: Re: Improving the Unix API
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Alexander Viro <viro@math.psu.edu>
List: tech-kern
Date: 06/27/1999 20:43:28
On Sun, 27 Jun 1999, der Mouse wrote:

> >> (clri didn't work?)
> > Never heard about clri (was under Linux).
> 
> May not have existed, then, which *would* explain it. :-)

# debugfs -w /dev/sda1
debugfs:  clri file
debugfs:  close

It exists, all right ;-) Even documented - man 8 debugfs and there you go.

> The NetBSD manpage doesn't say what happens if you "mount -o
> update,force,rdonly" when there are writeable descriptors open onto the
> filesystem, and then try to use those fds.  I would assume further
> attempts to write would produce errors (EROFS?), unless of course the
> filesystem has been re-remounted read/write.

Forced revoke()? But then there is mmap() and IIRC revoke() on *BSD
doesn't unmap the stuff. Oh, shit, there is such thing as pending
unlink... Does vgone() force it?