|
@@ -650,11 +650,12 @@
|
|
var diskID = thisDisk["name"];
|
|
var diskID = thisDisk["name"];
|
|
if (thisDisk["children"] === undefined || thisDisk["children"] === null){
|
|
if (thisDisk["children"] === undefined || thisDisk["children"] === null){
|
|
//This disk do not have any child. Assume a large read-only raw partition.
|
|
//This disk do not have any child. Assume a large read-only raw partition.
|
|
|
|
+ var size = thisDisk[size] || 0;
|
|
disks[diskID] = {
|
|
disks[diskID] = {
|
|
- "partitionsTotalSize":0,
|
|
|
|
- "partitionNames":["Hotplug"],
|
|
|
|
|
|
+ "partitionsTotalSize":size,
|
|
|
|
+ "partitionNames":["Raw"],
|
|
"partitionID":["✖"],
|
|
"partitionID":["✖"],
|
|
- "partitionVolume":[0],
|
|
|
|
|
|
+ "partitionVolume":[size],
|
|
"Type":[thisDisk["type"]],
|
|
"Type":[thisDisk["type"]],
|
|
"Mounted":[thisDisk["mountpoint"] !== null],
|
|
"Mounted":[thisDisk["mountpoint"] !== null],
|
|
"Format":[""]
|
|
"Format":[""]
|