Skip to content

Commit

Permalink
Made a few more functions public in InodeTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Xing Lin committed Apr 20, 2022
1 parent 05b657e commit e682196
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ enum ResultKind {
private final String homedirPrefix;
private List<MountPoint<T>> mountPoints = new ArrayList<MountPoint<T>>();

static class MountPoint<T> {
public static class MountPoint<T> {
String src;
INodeLink<T> target;

Expand Down Expand Up @@ -229,7 +229,7 @@ enum LinkType {
* For a merge, each target is checked to be dir when created but if target
* is changed later it is then ignored (a dir with null entries)
*/
static class INodeLink<T> extends INode<T> {
public static class INodeLink<T> extends INode<T> {
final String[] targetDirLinkList;
private T targetFileSystem; // file system object created from the link.
// Function to initialize file system. Only applicable for simple links
Expand Down Expand Up @@ -636,7 +636,7 @@ protected InodeTree(final Configuration config, final String viewName)
* If the input pathname leads to an internal mount-table entry then
* the target file system is one that represents the internal inode.
*/
static class ResolveResult<T> {
public static class ResolveResult<T> {
final ResultKind kind;
final T targetFileSystem;
final String resolvedPath;
Expand All @@ -663,7 +663,7 @@ boolean isInternalDir() {
* @return ResolveResult which allows further resolution of the remaining path
* @throws FileNotFoundException
*/
ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
public ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
throws IOException {
// TO DO: - more efficient to not split the path, but simply compare
String[] path = breakIntoPathComponents(p);
Expand Down Expand Up @@ -756,7 +756,7 @@ ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
return res;
}

List<MountPoint<T>> getMountPoints() {
public List<MountPoint<T>> getMountPoints() {
return mountPoints;
}

Expand All @@ -765,7 +765,7 @@ List<MountPoint<T>> getMountPoints() {
* @return home dir value from mount table; null if no config value
* was found.
*/
String getHomeDirPrefixValue() {
public String getHomeDirPrefixValue() {
return homedirPrefix;
}
}

0 comments on commit e682196

Please sign in to comment.