MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / alloc_inode

Method alloc_inode

atomic-core/src/pristine/txn/write/mod.rs:1031–1034  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1029 }
1030
1031 fn alloc_inode(&mut self) -> PristineResult<Inode> {
1032 let id = self.next_inode.fetch_add(1, Ordering::SeqCst);
1033 Ok(Inode::new(id))
1034 }
1035
1036 fn put_directory(&mut self, inode: Inode, flags: u8) -> PristineResult<()> {
1037 let mut table = self.txn.open_table(DIRECTORIES)?;

Callers 7

test_tree_operationsFunction · 0.45
test_inode_operationsFunction · 0.45
test_directory_delFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_tree_operationsFunction · 0.36
test_inode_operationsFunction · 0.36
test_directory_delFunction · 0.36