summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-02-07 01:57:29 +0000
committermav <mav@FreeBSD.org>2017-02-07 01:57:29 +0000
commitd4f6dde5d3e67a8b51d2d3cfc9a0695c05ba1ae8 (patch)
treec92cda5bd1c3592b950bee165bc82817e7f59f98 /contrib/netbsd-tests/lib/libc
parentfae7cb03d3dce923679fc72da3d94e87f850975c (diff)
downloadFreeBSD-src-d4f6dde5d3e67a8b51d2d3cfc9a0695c05ba1ae8.zip
FreeBSD-src-d4f6dde5d3e67a8b51d2d3cfc9a0695c05ba1ae8.tar.gz
MFC r312694: Make CTL ramdisk backend a real RAM disk.
If "capacity" LU option is set, ramdisk backend now implements featured thin provisioned disk, storing data in malloc(9) allocated memory blocks of pblocksize bytes (default PAGE_SIZE or 4KB). Additionally ~0.2% of LU size is used for indirection tree (bigger pblocksize reduce the overhead). Backend supports all unmap and anchor operations. If configured capacity is overflowed, proper error conditions are reported. If "capacity" LU option is not set, the backend operates mostly the same as before without allocating real storage: writes go to nowhere, reads return zeroes, reporting that all LBAs are unmapped. This backend is still mostly oriented on testing and benchmarking (it is still a volatile RAM disk), but now it should allow to run real FS tests, not only simple dumb dd.
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud