The Ramdisk Server#
The ramdisk server is a simple app, intended to get the file system off the ground. It provides the ability to allocate, read, write, and free blocks.
Blocks#
The ramdisk server allocates a large, contiguous MO as the ramdisk. Blocks are page-sized chunks of the ramdisk; by default, the disk has 1024 blocks.
In order to use the ramdisk, clients must call ramdisk_client_alloc_block
to allocate a block resource. The client is not able to choose which block it will receive, as we have not yet encountered a need for this feature. Allocation is unique; no other allocation call will return the same block, unless if the block is first freed using ramdisk_client_free_block
.