public class PBImageCorruptionDetector extends Object
Modifier and Type | Method and Description |
---|---|
void |
afterOutput()
Method called at the end of output() phase after all the inodes
with known parentPath has been printed out.
|
protected void |
buildNamespace(InputStream in,
List<Long> refIdList)
Scan the INodeDirectory section to construct the namespace.
|
protected void |
checkNode(FsImageProto.INodeSection.INode p,
AtomicInteger numDirs)
Checks the inode (saves if directory), and counts them.
|
void |
close() |
String |
getEntry(String parentPath,
FsImageProto.INodeSection.INode inode)
Get text output for the given inode.
|
String |
getHeader()
Get text output for the header line.
|
protected org.apache.hadoop.fs.permission.PermissionStatus |
getPermission(long perm) |
int |
getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto) |
void |
visit(RandomAccessFile file) |
public String getHeader()
public String getEntry(String parentPath, FsImageProto.INodeSection.INode inode)
parentPath
- the path of parent directoryinode
- the INode object to output.protected void checkNode(FsImageProto.INodeSection.INode p, AtomicInteger numDirs) throws IOException
IOException
protected void buildNamespace(InputStream in, List<Long> refIdList) throws IOException
IOException
public void afterOutput() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void visit(RandomAccessFile file) throws IOException
IOException
protected org.apache.hadoop.fs.permission.PermissionStatus getPermission(long perm)
public int getStoragePolicy(FsImageProto.INodeSection.XAttrFeatureProto xattrFeatureProto)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.