summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-02-07 01:58:02 +0000
committermav <mav@FreeBSD.org>2017-02-07 01:58:02 +0000
commit9a14449f000366bbecfcd79e9740def90523687d (patch)
tree8fdc8e50996e61ac89ce6a3d30c51b7bff883311 /contrib/diff/lib
parentb8bf2049d02110a27c388f8d234bf1233ddb7742 (diff)
downloadFreeBSD-src-9a14449f000366bbecfcd79e9740def90523687d.zip
FreeBSD-src-9a14449f000366bbecfcd79e9740def90523687d.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/diff/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud