Esempio n. 1
0
  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;
  }
Esempio n. 2
0
  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;
  }