MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / GenerateInode

Method GenerateInode

cmd/cql-fuse/fs.go:273–275  ·  view source on GitHub ↗

GenerateInode returns a new inode ID.

(parentInode uint64, name string)

Source from the content-addressed store, hash-verified

271
272// GenerateInode returns a new inode ID.
273func (cfs CFS) GenerateInode(parentInode uint64, name string) uint64 {
274 return cfs.newUniqueID()
275}
276
277func (cfs CFS) newUniqueID() (id uint64) {
278 // cockroach's unique_rowid() Contains time and space (node ID) components

Callers

nothing calls this directly

Calls 1

newUniqueIDMethod · 0.95

Tested by

no test coverage detected