-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 make the snapshot scan fs detection better (#3737)
- Loading branch information
Showing
6 changed files
with
433 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
providers/os/connection/snapshot/testdata/another_alma_attached.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
|
||
"blockdevices": [ | ||
{ | ||
"name": "zram0", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
"[SWAP]" | ||
] | ||
},{ | ||
"name": "nvme0n1", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "nvme0n1p1", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": "/", | ||
"uuid": "ff20f197-ffa7-403f-b746-72395ee51a0d", | ||
"fsavail": "6.2G", | ||
"fsuse%": "21%", | ||
"mountpoints": [ | ||
"/" | ||
] | ||
},{ | ||
"name": "nvme0n1p128", | ||
"fstype": "vfat", | ||
"fsver": "FAT16", | ||
"label": null, | ||
"uuid": "0E68-4A00", | ||
"fsavail": "8.6M", | ||
"fsuse%": "14%", | ||
"mountpoints": [ | ||
"/boot/efi" | ||
] | ||
} | ||
] | ||
},{ | ||
"name": "nvme1n1", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "nvme1n1p1", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
},{ | ||
"name": "nvme1n1p2", | ||
"fstype": "vfat", | ||
"fsver": "FAT16", | ||
"label": null, | ||
"uuid": "C8BB-FC87", | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
},{ | ||
"name": "nvme1n1p3", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": null, | ||
"uuid": "31f80bf2-f73c-4350-bd3e-1dfe82e691f9", | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
},{ | ||
"name": "nvme1n1p4", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": null, | ||
"uuid": "b6b03ca5-4431-4db9-a1fb-f13c8566f779", | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
92 changes: 92 additions & 0 deletions
92
providers/os/connection/snapshot/testdata/aws_attached.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"blockdevices": [ | ||
{ | ||
"name": "xvda", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "xvda1", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": "/", | ||
"uuid": "3d668946-b9eb-4d6b-acbd-da437d796ee8", | ||
"fsavail": "6.4G", | ||
"fsuse%": "19%", | ||
"mountpoints": [ | ||
"/" | ||
] | ||
}, | ||
{ | ||
"name": "xvda127", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
}, | ||
{ | ||
"name": "xvda128", | ||
"fstype": "vfat", | ||
"fsver": "FAT16", | ||
"label": null, | ||
"uuid": "1753-28B3", | ||
"fsavail": "8.7M", | ||
"fsuse%": "13%", | ||
"mountpoints": [ | ||
"/boot/efi" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "xvdh", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "xvdh1", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": "/", | ||
"uuid": "8912f503-0393-46e9-ac20-cf4907701485", | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
}, | ||
{ | ||
"name": "xvdh128", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
80 changes: 80 additions & 0 deletions
80
providers/os/connection/snapshot/testdata/oracle_attached.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"blockdevices": [ | ||
{ | ||
"name": "xvda", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "xvda1", | ||
"fstype": "xfs", | ||
"fsver": null, | ||
"label": "/", | ||
"uuid": "3d668946-b9eb-4d6b-acbd-da437d796ee8", | ||
"fsavail": "6.4G", | ||
"fsuse%": "19%", | ||
"mountpoints": [ | ||
"/" | ||
] | ||
}, | ||
{ | ||
"name": "xvda127", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
}, | ||
{ | ||
"name": "xvda128", | ||
"fstype": "vfat", | ||
"fsver": "FAT16", | ||
"label": null, | ||
"uuid": "1753-28B3", | ||
"fsavail": "8.7M", | ||
"fsuse%": "13%", | ||
"mountpoints": [ | ||
"/boot/efi" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "xvdb", | ||
"fstype": null, | ||
"fsver": null, | ||
"label": null, | ||
"uuid": null, | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
], | ||
"children": [ | ||
{ | ||
"name": "xvdb1", | ||
"fstype": "ext4", | ||
"fsver": "1.0", | ||
"label": "/", | ||
"uuid": "d5388b06-35e3-435e-8eaf-09a08de83883", | ||
"fsavail": null, | ||
"fsuse%": null, | ||
"mountpoints": [ | ||
null | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.