statistics.getRdev(), Statistics.getReport().length() + getOpsString().length(), statistics.getBlocks(), statistics.getAtime(),
statistics.getMtime(), statistics.getCtime());
return 0;
}
NodeMetadata metadata = null;
if(!config.isNonSharing()){
try {
metadata = namespace.getMetadata(path);
} catch (DirectoryServiceConnectionProblemException e) {
throw new FuseException(e.getMessage()).initErrno(FuseException.ECONNABORTED);
} catch (DirectoryServiceException e) {
long time = System.currentTimeMillis();
try {
metadata = directoryService.getMetadata(path);
} catch (DirectoryServiceException e1) {
throw new FuseException(e1.getMessage()).initErrno(FuseException.ENOENT);
}
Statistics.incGetMeta(System.currentTimeMillis()-time);
}
}else{
long time = System.currentTimeMillis();
try {
metadata = directoryService.getMetadata(path);
} catch (DirectoryServiceException e1) {
throw new FuseException(e1.getMessage()).initErrno(FuseException.ENOENT);
}
Statistics.incGetMeta(System.currentTimeMillis()-time);
}
FileStats stats = metadata.getStats();
getattrSetter.set(stats.getInode(), stats.getMode(), stats.getNlink(), Integer.parseInt(System.getProperty("uid")), Integer.parseInt(System.getProperty("gid")),
stats.getRdev(), stats.getSize(), stats.getBlocks(), stats.getAtime(),
stats.getMtime(), stats.getCtime());
return 0;