#Writing a persistence layer in Rust

8 messages · Page 1 of 1 (latest)

onyx girder
#

Hi, I was thinking about using a raw or cooked partition for storing blocks of data and I wanted to write this in Rust. Essentially writing a file system.

Wanted to pick some brains on some of the higher level design issues....

rancid mulch
ionic vector
onyx girder
#

Hi, so there two different sets of issues.
High level design and design considerations...
Then issues w implementation in Rust. (Best way to do it)

In terms of this... The idea at a high level is to take ownership of the device.

#

(Or cooked chunks...) and then lay out the data within it.
So I imagine I would store data in blocks (size would have to be preset to something like 4mb ... and then I would have to have a way to manage the list of blocks available, and in use. Then when the data blocks are used for something like a file or an object store , or as a segment of a stream.

#

In terms of streams, I'd have to manage the streams... then for each stream, the topic and then the blocks associated with it. (And even here there's a question do I manage the data blocks per stream or per topic...)

rancid mulch
#

Ah, you want basic advice on how to make a filesystem

#

Uh, #os-dev might have links, maybe?