vitalif / vitastor

Simplified distributed block and file storage with strong consistency, like in Ceph (repository mirror)
https://vitastor.io
Other
140 stars 22 forks source link

Does vitastor have data read and write demo? #8

Closed lnsyyj closed 3 years ago

lnsyyj commented 3 years ago

Hi @vitastor, There is a question, think about you for advice. Does vitastor have a demo for reading and writing? I saw src\test_cluster_client.cpp, but it seems that it does not write data to the real cluster. Can you provide a complete demo for reading and writing?

vitalif commented 3 years ago

Do you want programmatic r/w support? No, there is no demo, but now there is a simplified C wrapper library vitastor_c.h. You can check out how to use it in fio_cluster.cpp

lnsyyj commented 3 years ago

Thank you, I have tested the read-write interface. https://github.com/lnsyyj/vitastor/blob/wip-test-write/src/test_write.cpp