Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IMPORTANT FIX: a bug in nami which may damage file systems

27 views
Skip to first unread message

ucbvax!dist2

unread,
Dec 11, 1981, 11:40:22 PM12/11/81
to
The qcopy routine of nami.c sets i_count to 250 if it exceeds
255. This ultimately causes the quota node to be deallocated at a
time when there are still valid pointers to it. A later attempt to
change the node will cause the first block pointer of some other inode
to be incremented or decremented. The fixes are:

diff kernel/sys/sys/nami.c.old kernel/sys/sys/nami.c
358,359d357
< if (++(qp->i_count) == 0)
< qp->i_count = 250;

diff kernel/include/sys/inode.h.old kernel/include/sys/inode.h
37c37
< char i_count; /* reference count */
---
> int i_count; /* reference count */


These changes should be made to all tapes written before 12/12/81.

Carl

0 new messages