NetBSD/sys/ufs
bouyer a2d3f5532c Fix quota2 list corruption issue when defaultquotas are 0 (deny any file
and block allocation).

When quota2_check() is called with an uid not yet in the list,
getinoquota2() will call quota2_q2ealloc() to allocate a new entry for this
uid. quota2_q2ealloc() will remove an entry from the free list and
put it at the head of the corresponding hash list, and flush the block
containing the header if it's not the one also containing the allocated entry.
quota2_q2ealloc() then return the alocated entry and corresponding block
to caller (getinoquota2() here), which returns it to quota2_check().
quota2_check() then checks if the allocation can succeed, and returns and
error if not and calls brelse() on the buffer (because from his POW no
change was made to the entry), effectively discarding changes
to the entry that may have been made by quota2_q2ealloc().
Fix by always bwrite()ing the entry in quota2_q2ealloc(), and re-reading
the entry in caller.
2012-09-27 07:47:56 +00:00
..
chfs chfs: uappnd flag patch 2012-08-23 11:29:51 +00:00
ext2fs really print the incompatible bits. 2012-09-01 17:01:24 +00:00
ffs Stop extended attributes at the appropriate place so that unmount 2012-09-10 07:57:50 +00:00
lfs Adapt ffs, lfs, and ext2fs to use genfs_rename. 2012-05-09 00:21:17 +00:00
mfs Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
ufs Fix quota2 list corruption issue when defaultquotas are 0 (deny any file 2012-09-27 07:47:56 +00:00
files.ufs Adapt ffs, lfs, and ext2fs to use genfs_rename. 2012-05-09 00:21:17 +00:00
Makefile