summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2003-02-22 00:29:51 +0000
committermckusick <mckusick@FreeBSD.org>2003-02-22 00:29:51 +0000
commit5340f28b154d4fa0a65fbe142b2d7dec10966348 (patch)
tree90f2dbda7eaecc3abfd965b963c9862a47d2bf81 /lib/libc/stdlib/random.c
parente6aeffdeb5cd5ab10425b1d33b16e6c79b54c859 (diff)
downloadFreeBSD-src-5340f28b154d4fa0a65fbe142b2d7dec10966348.zip
FreeBSD-src-5340f28b154d4fa0a65fbe142b2d7dec10966348.tar.gz
This patch fixes a bug on an active filesystem on which a snapshot
is being taken from panicing with either "freeing free block" or "freeing free inode". The problem arises when the snapshot code is scanning the filesystem looking for inodes with a reference count of zero (e.g., unlinked but still open) so that it can expunge them from its view. If it encounters a reclaimed vnode and has to restart its scan, then it will panic if it encounters and tries to free an inode that it has already processed. The fix is to check each candidate inode to see if it has already been processed before trying to delete it from the snapshot image. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud