Closed geekyang95 closed 3 years ago
I think it's more simple to use a file rather than to construct a memstore, because S5FlashStore communicate to system only via a file descirptor(S5FlashStore::dev_fd
). Create memstore may need a lot coding work.
That's not a problem, only a little code changes need to make by using gmock to mock read/write operations. Maybe I should write a simple demo for discussing, at first.
And, it would be a good idea to seperate OS operations from S5FlashStore, because we may need to support spdk in the future, or like the test purpose. If we can make dev_handle_t more powerful (not just a file descripter), it would be much easier to do things like that. That's a more CPP way to solve problem :)
Need a simple demo to check afs_store Local IO path. My plan: