- Common ways to obtain FsImageProto$INodeSection$INodeFile
private void myMethod () {FsImageProto$INodeSection$INodeFile f =
FsImageProto.INodeSection$INode fsImageProtoINodeSection$INode;fsImageProtoINodeSection$INode.getFile()
FsImageProto.SnapshotDiffSection$FileDiff fsImageProtoSnapshotDiffSection$FileDiff;fsImageProtoSnapshotDiffSection$FileDiff.getSnapshotCopy()
- Smart code suggestions by Codota
}
mergeAcl(other.getAcl());
private List<AclEntry> getAclEntryList(String path) throws IOException { long id = lookup(path); FsImageProto.INodeSection.INode inode = fromINodeId(id); switch (inode.getType()) { case FILE: { FsImageProto.INodeSection.INodeFile f = inode.getFile(); return FSImageFormatPBINode.Loader.loadAclEntries( f.getAcl(), stringTable); } case DIRECTORY: { FsImageProto.INodeSection.INodeDirectory d = inode.getDirectory(); return FSImageFormatPBINode.Loader.loadAclEntries( d.getAcl(), stringTable); } default: { return new ArrayList<AclEntry>(); } } }
dumpXattrs(f.getXAttrs()); dumpAcls(f.getAcl()); if (f.getBlocksCount() > 0) { out.print("<" + INODE_SECTION_BLOCKS + ">");
INodeFile file = inode.getFile(); p = getPermission(file.getPermission()); hasAcl = file.hasAcl() && file.getAcl().getEntriesCount() > 0; append(buffer, file.getReplication()); append(buffer, formatDate(file.getModificationTime()));
int[] entries = AclEntryStatusFormat .toInt(FSImageFormatPBINode.Loader.loadAclEntries( fileInPb.getAcl(), state.getStringTable())); acl = new AclFeature(entries);
private List<AclEntry> getAclEntryList(String path) throws IOException { long id = lookup(path); FsImageProto.INodeSection.INode inode = fromINodeId(id); switch (inode.getType()) { case FILE: { FsImageProto.INodeSection.INodeFile f = inode.getFile(); return FSImageFormatPBINode.Loader.loadAclEntries( f.getAcl(), stringTable); } case DIRECTORY: { FsImageProto.INodeSection.INodeDirectory d = inode.getDirectory(); return FSImageFormatPBINode.Loader.loadAclEntries( d.getAcl(), stringTable); } default: { return new ArrayList<AclEntry>(); } } }
f.getAcl(), state.getStringTable())); file.addAclFeature(new AclFeature(entries));
f.getAcl(), state.getStringTable())); file.addAclFeature(new AclFeature(entries));
f.getAcl(), state.getStringTable())); file.addAclFeature(new AclFeature(entries));
int[] entries = AclEntryStatusFormat .toInt(FSImageFormatPBINode.Loader.loadAclEntries( fileInPb.getAcl(), state.getStringTable())); acl = new AclFeature(entries);
int[] entries = AclEntryStatusFormat .toInt(FSImageFormatPBINode.Loader.loadAclEntries( fileInPb.getAcl(), state.getStringTable())); acl = new AclFeature(entries);
mergeAcl(other.getAcl());
mergeAcl(other.getAcl());
private List<AclEntry> getAclEntryList(String path) throws IOException { long id = lookup(path); FsImageProto.INodeSection.INode inode = fromINodeId(id); switch (inode.getType()) { case FILE: { FsImageProto.INodeSection.INodeFile f = inode.getFile(); return FSImageFormatPBINode.Loader.loadAclEntries( f.getAcl(), stringTable); } case DIRECTORY: { FsImageProto.INodeSection.INodeDirectory d = inode.getDirectory(); return FSImageFormatPBINode.Loader.loadAclEntries( d.getAcl(), stringTable); } default: { return new ArrayList<AclEntry>(); } } }