nvmet and stable API
With the existing functionality of nvmetcli in that you can save/restore/clear/ls and use interactively seems to indicate that if you want to programmaticlly change the state of targets that you need to use the python code that is available in nvmet which is used by the CLI.
Is this a correct assumption, that nvmet is an API for external python
programs to use?
The block tests in https://github.com/osandov/blktests.git seem to indicate that going straight to configfs is the API?
Thanks,
Tony
_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Sagi Grimberg
maintainerQuoted 5 lines
With the existing functionality of nvmetcli in that you can save/restore/clear/ls and use interactively seems to indicate that if you want to programmaticlly change the state of targets that you need to use the python code that is available in nvmet which is used by the CLI.
nvmetcli needs to be backward compatible with kernels lacking functionality. Anywhere this is not the case, its a bug and we need to fix it.
Quoted 2 lines
Is this a correct assumption, that nvmet is an API for external python
programs to use?
We don't have an API for python. I sort of assumed that this will be contributed by the people that want/need it.
Quoted 2 lines
The block tests in https://github.com/osandov/blktests.git seem to indicate that going straight to configfs is the API?
That's for dependency minimization.
_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Quoted 2 lines · Sagi Grimberg
We don't have an API for python. I sort of assumed that this will be contributed by the people that want/need it.
Maybe, I'm interpreting this statement incorrectly, if so please clarify. I'm reading this as write what you need for whatever language to configfs. This works and it's not difficult to do, but what to do for persistence?
Try to write compatible JSON output across code bases and supported kernel features? Have everyone fork & exec "nvmetcli save"? Write out your own file and document not to use incompatible stacks?
Additionally, none of this addresses a potential race condition between two or more processes with different implementations making concurrent changes to configfs and getting the configuration saved with no lost changes.
Suggestions?
Thanks,
Tony
_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Quoted 14 lines · Tony Asleson
Quoted 2 lines · Sagi Grimberg
We don't have an API for python. I sort of assumed that this will be contributed by the people that want/need it.
Maybe, I'm interpreting this statement incorrectly, if so please clarify. I'm reading this as write what you need for whatever language to configfs. This works and it's not difficult to do, but what to do for persistence?
Try to write compatible JSON output across code bases and supported kernel features? Have everyone fork & exec "nvmetcli save"? Write out your own file and document not to use incompatible stacks?
Quoted 6 lines
Additionally, none of this addresses a potential race condition between two or more processes with different implementations making concurrent changes to configfs and getting the configuration saved with no lost changes.
Suggestions?
What would be your preference? You seems to be the main interested party that wants another interface than nvmetcli for production usage (all other uses is just tests), so maybe you an propose something that works for you?
_______________________________________________
linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme