|
@@ -55,7 +55,7 @@ public class DiskService {
|
|
|
totalSpace, usableSpace, totalInodes, freeInodes);
|
|
totalSpace, usableSpace, totalInodes, freeInodes);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void initDisk(String ssdDir, List<String> hddDirs) throws IOException {
|
|
|
|
|
|
|
+ public void initDisk(String ssdDir, List<String> hddDirs) throws Exception {
|
|
|
for (String hddDir : hddDirs) {
|
|
for (String hddDir : hddDirs) {
|
|
|
if (hddDir.startsWith(ssdDir)) {
|
|
if (hddDir.startsWith(ssdDir)) {
|
|
|
String msg = String.format("hddDir %s 不能是 ssdDir %s 的子目录", hddDir, ssdDir);
|
|
String msg = String.format("hddDir %s 不能是 ssdDir %s 的子目录", hddDir, ssdDir);
|