nnfs.setPermission(new Path("/"), new FsPermission((short)0777));
final Path RENAME_PATH = new Path("/foo/bar");
userfs.mkdirs(RENAME_PATH);
assertTrue(canRename(userfs, RENAME_PATH, CHILD_DIR1));
} finally {
if(cluster != null) cluster.shutdown();
}
}
static boolean canMkdirs(FileSystem fs, Path p) throws IOException {
try {