Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,8 @@ private static SerialNumberManager getSerialNumberManager(AclEntryType type) {
public int getLength() {
return BITS.getLength();
}

public LongBitFormat getBitFormat() {
return BITS;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class INodeWithAdditionalFields extends INode
implements LinkedElement {
// Note: this format is used both in-memory and on-disk. Changes will be
// incompatible.
enum PermissionStatusFormat implements LongBitFormat.Enum {
public enum PermissionStatusFormat implements LongBitFormat.Enum {
MODE(null, 16),
GROUP(MODE.BITS, 24),
USER(GROUP.BITS, 24);
Expand Down Expand Up @@ -93,6 +93,10 @@ static PermissionStatus toPermissionStatus(long id,
public int getLength() {
return BITS.getLength();
}

public LongBitFormat getBitFormat() {
return BITS;
}
}

/** The inode id. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public int getLength() {
return BITS.getLength();
}

public LongBitFormat getBitFormat() {
return BITS;
}
static XAttr.NameSpace getNamespace(int record) {
long nid = NS.BITS.retrieve(record);
nid |= NS_EXT.BITS.retrieve(record) << NS_EXT_SHIFT;
Expand Down
Loading