@Private
public class XAttrStorage
extends java.lang.Object
| Constructor | Description |
|---|---|
XAttrStorage() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.fs.XAttr |
readINodeXAttrByPrefixedName(INode inode,
int snapshotId,
java.lang.String prefixedName) |
Reads the extended attribute of an inode by name with prefix.
|
static java.util.List<org.apache.hadoop.fs.XAttr> |
readINodeXAttrs(INodeAttributes inodeAttr) |
Reads the existing extended attributes of an inode.
|
static void |
updateINodeXAttrs(INode inode,
java.util.List<org.apache.hadoop.fs.XAttr> xAttrs,
int snapshotId) |
Update xattrs of inode.
|
public static org.apache.hadoop.fs.XAttr readINodeXAttrByPrefixedName(INode inode, int snapshotId, java.lang.String prefixedName)
inode - INode to readsnapshotId - the snapshotId of the requested pathprefixedName - xAttr name with prefixpublic static java.util.List<org.apache.hadoop.fs.XAttr> readINodeXAttrs(INodeAttributes inodeAttr)
Must be called while holding the FSDirectory read lock.
inodeAttr - INodeAttributes to read.XAttr list.public static void updateINodeXAttrs(INode inode, java.util.List<org.apache.hadoop.fs.XAttr> xAttrs, int snapshotId) throws org.apache.hadoop.hdfs.protocol.QuotaExceededException
Must be called while holding the FSDirectory write lock.
inode - INode to updatexAttrs - to update xAttrs.snapshotId - id of the latest snapshot of the inodeorg.apache.hadoop.hdfs.protocol.QuotaExceededExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.