Skip to content

Commit 7ae3289

Browse files
xinglinXing Lin
authored andcommitted
HADOOP-18172: Changed scope for isRootInternalDir/getRootFallbackLink for InodeTree (#4106)
Co-authored-by: Xing Lin <[email protected]> (cherry picked from commit 98b9c43)
1 parent caecec4 commit 7ae3289

File tree

1 file changed

+6
-6
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs

1 file changed

+6
-6
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
@InterfaceAudience.Private
6363
@InterfaceStability.Unstable
64-
abstract class InodeTree<T> {
64+
public abstract class InodeTree<T> {
6565
private static final Logger LOGGER =
6666
LoggerFactory.getLogger(InodeTree.class.getName());
6767

@@ -458,11 +458,11 @@ private boolean hasFallbackLink() {
458458
* there will be root to root mapping. So, root does not represent as
459459
* internalDir.
460460
*/
461-
protected boolean isRootInternalDir() {
461+
public boolean isRootInternalDir() {
462462
return root.isInternalDir();
463463
}
464464

465-
protected INodeLink<T> getRootFallbackLink() {
465+
public INodeLink<T> getRootFallbackLink() {
466466
Preconditions.checkState(root.isInternalDir());
467467
return rootFallbackLink;
468468
}
@@ -743,7 +743,7 @@ private LinkEntry buildLinkRegexEntry(
743743
* If the input pathname leads to an internal mount-table entry then
744744
* the target file system is one that represents the internal inode.
745745
*/
746-
static class ResolveResult<T> {
746+
public static class ResolveResult<T> {
747747
final ResultKind kind;
748748
final T targetFileSystem;
749749
final String resolvedPath;
@@ -778,7 +778,7 @@ boolean isLastInternalDirLink() {
778778
* @return ResolveResult which allows further resolution of the remaining path
779779
* @throws IOException
780780
*/
781-
ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
781+
public ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
782782
throws IOException {
783783
ResolveResult<T> resolveResult = null;
784784
String[] path = breakIntoPathComponents(p);
@@ -958,7 +958,7 @@ public List<MountPoint<T>> getMountPoints() {
958958
* @return home dir value from mount table; null if no config value
959959
* was found.
960960
*/
961-
String getHomeDirPrefixValue() {
961+
public String getHomeDirPrefixValue() {
962962
return homedirPrefix;
963963
}
964964
}

0 commit comments

Comments
 (0)