diff options
author | des <des@FreeBSD.org> | 2011-04-29 21:18:41 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-04-29 21:18:41 +0000 |
commit | f99737eb7bcd6c02fdf8bafc61179eb2711a4ed7 (patch) | |
tree | 45cb2dbfd2eb62c2f83ce239dde87046d43d19bf /sys/kern/subr_bus.c | |
parent | 271fabc97a777b0748ff774cc86bbdebb1f4a7a6 (diff) | |
download | FreeBSD-src-f99737eb7bcd6c02fdf8bafc61179eb2711a4ed7.zip FreeBSD-src-f99737eb7bcd6c02fdf8bafc61179eb2711a4ed7.tar.gz |
Implement BIO_DELETE for vnode devices by simply overwriting the deleted
sectors with all-zeroes.
The zeroes come from a static buffer; null(4) uses a dynamic buffer for
the same purpose (for /dev/zero). It might be a good idea to have a
static, shared, read-only all-zeroes page somewhere in the kernel that
md(4), null(4) and any other code that needs zeroes could use.
Reviewed by: kib
MFC after: 3 weeks
Diffstat (limited to 'sys/kern/subr_bus.c')
0 files changed, 0 insertions, 0 deletions