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

Method alloc_inode

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

Source from the content-addressed store, hash-verified

1502 }
1503
1504 fn alloc_inode(&mut self) -> PristineResult<Inode> {
1505 let id = self.next_inode.fetch_add(1, Ordering::SeqCst);
1506 Ok(Inode::new(id))
1507 }
1508
1509 fn put_directory(&mut self, inode: Inode, flags: u8) -> PristineResult<()> {
1510 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