inomap: update outdated wording in comments
This commit is contained in:
parent
b8d78d6a31
commit
763499ee80
@ -1,4 +1,4 @@
|
|||||||
// inomap translates (Dev, Flags, Ino) tuples to unique uint64
|
// inomap translates (Dev, Tag, Ino) tuples to unique uint64
|
||||||
// inode numbers.
|
// inode numbers.
|
||||||
//
|
//
|
||||||
// Format of the returned inode numbers:
|
// Format of the returned inode numbers:
|
||||||
@ -6,11 +6,11 @@
|
|||||||
// [spill bit = 0][15 bit namespace id][48 bit passthru inode number]
|
// [spill bit = 0][15 bit namespace id][48 bit passthru inode number]
|
||||||
// [spill bit = 1][63 bit spill inode number ]
|
// [spill bit = 1][63 bit spill inode number ]
|
||||||
//
|
//
|
||||||
// Each (Dev, Flags) tuple gets a namespace id assigned. The original inode
|
// Each (Dev, Tag) tuple gets a namespace id assigned. The original inode
|
||||||
// number is then passed through in the lower 48 bits.
|
// number is then passed through in the lower 48 bits.
|
||||||
//
|
//
|
||||||
// If namespace ids are exhaused, or the original id is larger than 48 bits,
|
// If namespace ids are exhaused, or the original id is larger than 48 bits,
|
||||||
// the whole (Dev, Flags, Ino) tuple gets mapped in the spill map, and the
|
// the whole (Dev, Tag, Ino) tuple gets mapped in the spill map, and the
|
||||||
// spill bit is set to 1.
|
// spill bit is set to 1.
|
||||||
package inomap
|
package inomap
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ type namespaceData struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// QIno = Qualified Inode number.
|
// QIno = Qualified Inode number.
|
||||||
// Uniquely identifies a backing file through the device number,
|
// Uniquely identifies a backing file through the
|
||||||
// inode number pair.
|
// (device number, tag, inode number) tuple.
|
||||||
type QIno struct {
|
type QIno struct {
|
||||||
namespaceData
|
namespaceData
|
||||||
// Stat_t.Ino is uint64 on 32- and 64-bit Linu
|
// Stat_t.Ino is uint64 on 32- and 64-bit Linu
|
||||||
|
Loading…
Reference in New Issue
Block a user