private ArrayList<String> GetMountPoints(ArrayList<FsInfo> fsList) { ArrayList<String> result = new ArrayList<String>(0); Iterator<FsInfo> it = fsList.iterator(); while (it.hasNext()) { FsInfo item = it.next(); result.add(item.GetMountPoint() + "/"); } return result; }
private FsFilterResult ExcludeRootMounts(ArrayList<FsInfo> fsList) { FsFilterResult result = new FsFilterResult(); Iterator<FsInfo> it = fsList.iterator(); while (it.hasNext()) { FsInfo item = it.next(); if (item.GetDevice().equals("/dev/hda1")) { result.badItems_.add(item); } else { result.goodItems_.add(item); } } return result; }