Dietmar Maurer
|
3bbe291c51
|
zpool_status.rs - indented_list_to_tree: do not set name property
This is no necessary. We only touch/set 'children' and 'leaf' properties.
|
2020-06-20 07:19:25 +02:00 |
|
Dietmar Maurer
|
215968e033
|
src/tools/disks/zpool_status.rs: add 'leaf' attribute to root node, rename 'prev' into 'parent'
|
2020-06-20 06:49:06 +02:00 |
|
Dietmar Maurer
|
eddd1a1b9c
|
src/tools/disks/zpool_status.rs: move use clause top of file
|
2020-06-20 06:17:22 +02:00 |
|
Dietmar Maurer
|
d2ce211899
|
fixup for previous commit
|
2020-06-20 06:15:26 +02:00 |
|
Dietmar Maurer
|
1cb46c6f65
|
src/tools/disks/zpool_status.rs - cleanup: use struct StackItem instead of tuple
|
2020-06-19 18:58:57 +02:00 |
|
Dietmar Maurer
|
5d88c3a1c8
|
src/tools/disks/zpool_status.rs: remove unnecessary checks
Thos things can never happen, so simply use unwrap().
|
2020-06-19 18:27:39 +02:00 |
|
Dietmar Maurer
|
07fb504943
|
src/tools/disks/zpool_status.rs: simplify code by using serde_json::to_value
|
2020-06-19 17:51:13 +02:00 |
|
Dietmar Maurer
|
f675c5e978
|
src/tools/disks/zpool_status.rs - add all attributes to the tree
|
2020-06-19 16:55:28 +02:00 |
|
Wolfgang Bumiller
|
4e37d9ce67
|
add general indented_list_to_tree implementation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
2020-06-19 14:37:40 +02:00 |
|
Dietmar Maurer
|
3352ee5656
|
parse_zpool_status_field: handle tabs without copying input
|
2020-06-18 19:40:01 +02:00 |
|
Dietmar Maurer
|
b29cbc414d
|
parse_zpool_status_vdev: consider tabs as 8 spaces
|
2020-06-18 18:38:56 +02:00 |
|
Dietmar Maurer
|
9438aca6c9
|
src/tools/disks/zpool_status.rs: improve parser
|
2020-06-18 14:55:22 +02:00 |
|
Dietmar Maurer
|
177a2de992
|
src/tools/nom.rs: move nom helpers into separate file
|
2020-06-18 12:41:13 +02:00 |
|
Dietmar Maurer
|
0727e56a06
|
src/tools/disks/zpool_status.rs: parse zpool status output
|
2020-06-18 10:23:15 +02:00 |
|