if (fields.length < 2)
throw new IOException("Unexpected output from command ' " + command);
// check if the location is remote
boolean isRemote = fields[1].equals("nfs");
StorageLocationType type = isShared ? StorageLocationType.SHARED :
(isRemote ? StorageLocationType.REMOTE : StorageLocationType.LOCAL);
// "Type" is the second column, and "Mounted on" is the last column
return new NNStorageLocation(location, fields[fields.length - 1], type);
}