|
@@ -1414,7 +1414,7 @@ public class ViewFileSystem extends FileSystem {
|
|
|
|
|
|
@Override
|
|
|
public boolean mkdirs(Path dir, FsPermission permission)
|
|
|
- throws AccessControlException, FileAlreadyExistsException {
|
|
|
+ throws IOException {
|
|
|
if (theInternalDir.isRoot() && dir == null) {
|
|
|
throw new FileAlreadyExistsException("/ already exits");
|
|
|
}
|
|
@@ -1444,7 +1444,7 @@ public class ViewFileSystem extends FileSystem {
|
|
|
.append(linkedFallbackFs.getUri());
|
|
|
LOG.debug(msg.toString(), e);
|
|
|
}
|
|
|
- return false;
|
|
|
+ throw e;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1452,8 +1452,7 @@ public class ViewFileSystem extends FileSystem {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean mkdirs(Path dir)
|
|
|
- throws AccessControlException, FileAlreadyExistsException {
|
|
|
+ public boolean mkdirs(Path dir) throws IOException {
|
|
|
return mkdirs(dir, null);
|
|
|
}
|
|
|
|