summaryrefslogtreecommitdiff
path: root/scripts/convert-to-json
Commit message (Collapse)AuthorAgeFilesLines
* convert-to-json: Fix to handle fileio and other issuesAndy Grover2016-05-121-16/+31
| | | | | | | | | | parse_fileio was a cut-n-paste from block, missing key attributes like size and buffered. Fixed. Also, bodge up better handling for single vs multiple tpgs. Clarify referring to tpgs versus the tpg tag (tpgt, an integer). Signed-off-by: Andy Grover <agrover@redhat.com>
* Initial version of convert-to-json scriptAndy Grover2016-05-101-0/+312
This script attempts to convert from Datera 3.0's scsi_target.lio format to rtslib-fb's json format. It currently is not fully parsing the .lio file according to its grammar, it's kind of ad-hoc, shall we say, so that it hopefully works on most existing .lio files. Signed-off-by: Andy Grover <agrover@redhat.com>