We should call _close for each close matching the final close of an open.
This is a slight change in semantics but it's what we actually need to sort
must things out.
Yes it breaks some devices..diddums 8)
oftindex = udata.u_files[uindex];
- if (ino->c_refs == 1 && of_tab[oftindex].o_refs == 1) {
+ if (of_tab[oftindex].o_refs == 1) {
if (isdevice(ino))
d_close((int) (ino->c_node.i_addr[0]));
if (getmode(ino) == F_REG && O_ACCMODE(of_tab[oftindex].o_access))