package
0.0.0-20240301233439-3590967ac2be
Repository: https://github.com/nvidia/proxyfs.git
Documentation: pkg.go.dev
# Functions
GetFixedByteSliceFromBuf fetches a []byte from buf starting at curPos.
GetLEByteSliceFromBuf fetches a []byte from buf starting at curPos.
GetLEStringFromBuf fetches a string from buf starting at curPos.
GetLEUint16FromBuf fetches a uint16 from buf starting at curPos.
GetLEUint32FromBuf fetches a uint32 from buf starting at curPos.
GetLEUint64FromBuf fetches a uint64 from buf starting at curPos.
GetLEUint8FromBuf fetches a uint8 from buf starting at curPos.
GetObjectNameAsByteSlice returns the isomorphically mapped objectName as a []byte given a uint64 objectNumber.
GetObjectNameAsString returns the isomorphically mapped objectName as a string given a uint64 objectNumber.
GetObjectNumberFromByteSlice returns the isomorphically mapped uint64 objectNumber given a []byte objectName.
GetObjectNumberFromString returns the isomorphically mapped uint64 objectNumber given a string objectName.
PutFixedByteSliceToBuf writes a []byte to buf starting at curPos.
PutLEByteSliceToBuf writes a []byte to buf starting at curPos.
PutLEStringToBuf writes a string to buf starting at curPos.
PutLEUint16ToBuf writes a uint16 to buf starting at curPos.
PutLEUint32ToBuf writes a uint32 to buf starting at curPos.
PutLEUint64ToBuf writes a uint64 to buf starting at curPos.
PutLEUint8ToBuf writes a uint8 to buf starting at curPos.
UnmarshalCheckPointV1 decodes checkPointV1 from checkpointString.
UnmarshalCheckPointVersion extracts checkPointVersion from checkpointString.
UnmarshalDirectoryEntryValueV1 decodes directoryEntryValueV1 from directoryEntryValueV1Buf.
UnmarshalExtentMapEntryValueV1 decodes directoryEntryValueV1 from directoryEntryValueV1Buf.
UnmarshalInodeHeadV1 decodes inodeHeadV1 from inodeHeadV1Buf.
UnmarshalInodeTableEntryValueV1 decodes inodeTableEntryValueV1 from inodeTableEntryValueV1Buf.
UnmarshalInodeTableEntryValueVersion extracts inodeTableEntryValueVersion from inodeTableEntryValueBuf.
UnmarshalObjectTrailer decodes objectTrailer from objectTrailerBuf.
UnmarshalSuperBlockV1 decodes superBlockV1 from superBlockV1Buf.
# Constants
CheckPointObjectNumber specifies the ObjectNumber of the Object to hold the default/backup copy of the CheckPoint.
CheckPointVersionV* specifies the format of the CheckPoint.
'I' 'H'.
InodeHeadVersionV* specifies, for an ObjectTrailerStruct of Type InodeHeadType, the Version of InodeHeadV*Struct immediately preceeding the ObjectTrailerStruct.
InodeModeMask provides a bound on the acceptable values of an Inode's Mode field's protection bits (i.e.
InodeTableEntryValueVersionV* specifies the format of all following bytes in an InodeTable entry's Value InodeTableEntryStruct.
InodeType* specifies the type of Inode.
InodeType* specifies the type of Inode.
InodeType* specifies the type of Inode.
RootDirInodeNumber is the InodeNumber for the directory at the root of the file system.
'S' 'B'.
SuperBlockVersionV* specifies, for an ObjectTrailerStruct of Type SuperBlockType, the Version of the SuperBlockV*Struct immediately preceeding the ObjectTrailerStruct.
# Structs
CheckPointV1Struct specifies the format of the CheckPoint as of V1.
DirectoryEntryValueV1Struct specifies the format, for an Inode of type InodeTypeDir, of the bytes in a .Payload-identified B+Tree's Value.
ExtentMapEntryValueV1Struct specifies the format, for an Inode of type InodeTypeFile, of the bytes in a .Payload-identified B+Tree's Value.
InodeHeadLayoutEntryV1Struct is utilized in both DirInode's and FileInode's.
InodeHeadV1Struct specifies the layout of an Inode.
InodeLinkTableEntryStruct specifies the layout of an InodeHeadV1Struct.LinkTable's entry.
InodeStreamTableEntryStruct specifies the layout of an InodeHeadV1Struct.StreamTable's entry.
InodeTableEntryValueV1Struct specifies the format of the bytes in the InodeTable entry's Value following InodeTableEntryValueVersionV1.
InodeTableLayoutEntryV1Struct specifies the layout of the InodeTable B+Tree in Objects.
ObjectTrailerStruct specifies the layout of a trailer found in each Object that identifies the objType, version, and size of a structure immediately proceeding it.
SuperBlockStruct specifies the format of the SuperBlock found at the CheckPointV1Struct.SuperBlockLength trailing bytes of the Object indicated by CheckPointV1Struct.SuperBlockObjectNumber.