summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-11-05 09:36:05 +0000
committerschwarze <schwarze@openbsd.org>2013-11-05 09:36:05 +0000
commit1b8fb837529e67dfc11b6fb55d32bb74b6cd13b1 (patch)
tree51bd41dbd0d03fd1daaae25aa7c5dc2cbbe615fc /sys
parentFix RAID levels 0, 4, 5, and 6 with partitions larger than 2TB. (diff)
downloadwireguard-openbsd-1b8fb837529e67dfc11b6fb55d32bb74b6cd13b1.tar.xz
wireguard-openbsd-1b8fb837529e67dfc11b6fb55d32bb74b6cd13b1.zip
Make sure seekdir(3) works even when dirp->dd_buf still contains some
pending entries: At the time of the lseek(2), also invalidate the buffer in order to force getdents(2) during the next readdir(3). Because this throws away buffered data that could still be used in some cases, this is not particularly efficient, but at least it works; i will suggest optimizations soon. Bug found when investigating perl-5.18.1/t/op/threads-dirh.t that was reported broken by Andrew Fresh <andrew at afresh1 dot com>. ok guenther@ deraadt@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions