Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
turned off some debug printing to std error
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjan committed Sep 18, 2012
1 parent 4add8c9 commit 05ef9b3
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class VolumeUtil {
public static boolean isVolumeRemovable(URI uri) throws IOException {
FileStore fs = getFileStore(uri);
String type = fs.type();
//System.err.println("Is this a removable? type=" + type);
return removableFileStoreTypes.contains(type);
}

Expand All @@ -62,7 +61,7 @@ public static int makeVolumeFingerprint(URI uri) throws IOException {
if("/".equals(volumeRoot.toFile().getPath())) {
return -1; // fake hash key for root linux filesystem
}
//System.err.println("Found volume root: " + volumeRoot);
LOG.debug("Found volume root: " + volumeRoot);
long oldestFileCreation = -1;
File[] files = volumeRoot.toFile().listFiles();
if (files != null) {
Expand All @@ -77,14 +76,14 @@ public static int makeVolumeFingerprint(URI uri) throws IOException {
}
}
String name = volumeRoot.toString();
System.err.println("Found volume root name: " + name);
LOG.debug("Found volume root name: " + name);
if (fstore.supportsFileAttributeView("basic")) {
BasicFileAttributeView v = FileSystems.getDefault().provider()
.getFileAttributeView(volumeRoot, BasicFileAttributeView.class, LinkOption.NOFOLLOW_LINKS);
BasicFileAttributes basic = v.readAttributes();
System.err.println("Found volume root file key: " + basic.fileKey());
System.err.println("Found volume root create time: " + basic.creationTime());
System.err.println("Oldest file create time: " + basic.creationTime());
LOG.debug("Found volume root file key: " + basic.fileKey());
LOG.debug("Found volume root create time: " + basic.creationTime());
LOG.debug("Oldest file create time: " + basic.creationTime());
int result = name.hashCode() ^ (int) basic.creationTime().toMillis()
^ (int) oldestFileCreation;
return result;
Expand Down

0 comments on commit 05ef9b3

Please sign in to comment.