|
|
@ -84,8 +84,13 @@ public class ThreadVolume extends Thread {
|
|
|
|
List<String> path = volumeInfo
|
|
|
|
List<String> path = volumeInfo
|
|
|
|
.getVolumeMountPoint(volumeName);
|
|
|
|
.getVolumeMountPoint(volumeName);
|
|
|
|
// 默认加载第一个路径
|
|
|
|
// 默认加载第一个路径
|
|
|
|
if (null != path && path.size() > 0) {
|
|
|
|
for (String one : path) {
|
|
|
|
volume.setPath(path.get(0));
|
|
|
|
if (!one.contains("df")) {
|
|
|
|
|
|
|
|
volume.setPath(one);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (null == volume.getPath()) {
|
|
|
|
|
|
|
|
volume.setPath("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
volume.setAllSize(volumeInfo
|
|
|
|
volume.setAllSize(volumeInfo
|
|
|
|
.getVolumeAvailableSize(volumeName)
|
|
|
|
.getVolumeAvailableSize(volumeName)
|
|
|
@ -146,7 +151,7 @@ public class ThreadVolume extends Thread {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// TODO 更新folder 目录
|
|
|
|
// 更新folder 目录
|
|
|
|
CacheTreeData.setFolders(folderlist);
|
|
|
|
CacheTreeData.setFolders(folderlist);
|
|
|
|
CacheTreeData.setVolumeList(volumeList);
|
|
|
|
CacheTreeData.setVolumeList(volumeList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|