Searched refs:inode (Results 1 - 25 of 25) sorted by relevance

/fuchsia/zircon/system/ulib/minfs/
H A Dfsck.cpp41 zx_status_t GetInode(minfs_inode_t* inode, ino_t ino);
43 // Returns the nth block within an inode, relative to the start of the
48 zx_status_t GetInodeNthBno(minfs_inode_t* inode, blk_t n, blk_t* next_n,
50 zx_status_t CheckDirectory(minfs_inode_t* inode, ino_t ino,
53 zx_status_t CheckFile(minfs_inode_t* inode, ino_t ino);
69 zx_status_t MinfsChecker::GetInode(minfs_inode_t* inode, ino_t ino) { argument
76 fs_->inodes_->Load(ino, inode);
77 if ((inode->magic != kMinfsMagicFile) && (inode->magic != kMinfsMagicDir)) {
78 FS_TRACE_ERROR("check: ino %u has bad magic %#x\n", ino, inode
87 GetInodeNthBno(minfs_inode_t* inode, blk_t n, blk_t* next_n, blk_t* bno_out) argument
170 CheckDirectory(minfs_inode_t* inode, ino_t ino, ino_t parent, uint32_t flags) argument
297 CheckFile(minfs_inode_t* inode, ino_t ino) argument
418 minfs_inode_t inode; local
[all...]
H A Dinode-manager.cpp8 #include <minfs/inode-manager.h>
38 if ((status = fzl::MappedVmo::Create(inoblks * kMinfsBlockSize, "minfs-inode-table",
53 void InodeManager::Update(WriteTxn* txn, ino_t ino, const minfs_inode_t* inode) { argument
54 // Obtain the offset of the inode within its containing block
62 memcpy((void*)((uintptr_t)inodata + off_of_ino), inode, kMinfsInodeSize);
66 // write the single absolute inode block.
69 memcpy((void*)((uintptr_t)inodata + off_of_ino), inode, kMinfsInodeSize);
75 // obtain the block of the inode table we need
84 const minfs_inode_t* inode = reinterpret_cast<const minfs_inode_t*>((uintptr_t)inodata + local
86 memcpy(out, inode, kMinfsInodeSiz
[all...]
H A Drules.mk17 $(LOCAL_DIR)/inode-manager.cpp \
H A Dminfs.cpp82 xprintf("minfs: inode bitmap @ %10u\n", info->ibm_block);
84 xprintf("minfs: inode table @ %10u\n", info->ino_block);
89 void minfs_dump_inode(const minfs_inode_t* inode, ino_t ino) { argument
90 xprintf("inode[%u]: magic: %10u\n", ino, inode->magic);
91 xprintf("inode[%u]: size: %10u\n", ino, inode->size);
92 xprintf("inode[%u]: blocks: %10u\n", ino, inode->block_count);
93 xprintf("inode[
445 InoNew(Transaction* state, const minfs_inode_t* inode, ino_t* out_ino) argument
[all...]
H A Dminfs-private.h40 #include <minfs/inode-manager.h>
136 // instantiate a vnode from an inode
137 // the inode must exist in the file system
140 // instantiate a vnode with a new inode
157 // Free ino in inode bitmap, release all blocks held by inode.
160 // Writes back an inode into the inode table on persistent storage.
161 // Does not modify inode bitmap.
162 void InodeUpdate(WriteTxn* txn, ino_t ino, const minfs_inode_t* inode) { argument
[all...]
H A Dhost.cpp37 s->st_ino = a.inode;
H A Dvnode.cpp201 zx_object_set_property(vmo_.get(), ZX_PROP_NAME, "minfs-inode", 11);
864 // Given a (name, inode, type) combination:
867 // - Does not have the same inode as the argument inode
872 // - Replace the old vnode's position in the directory with the new inode
1066 // node, if the inode has been re-used).
1444 a->inode = ino_;
1482 uint32_t seqno; // inode seq no
1645 // In addition to reserve_blocks, reserve 1 inode for the vnode to be created.
1651 // mint a new inode an
[all...]
/fuchsia/zircon/system/ulib/blobfs/
H A Dfsck.cpp19 blobfs_inode_t* inode = blobfs_->GetNode(n); local
20 if (inode->start_block >= kStartBlockMinimum) {
22 inode_blocks_ += static_cast<uint32_t>(inode->num_blocks);
24 size_t start_block = inode->start_block;
25 size_t end_block = inode->start_block + inode->num_blocks;
37 FS_TRACE_ERROR("check: detected inode %u with bad state\n", n);
71 FS_TRACE_ERROR("check: bitmap allocated blocks (%u) do not match inode allocated blocks "
77 FS_TRACE_ERROR("check: incorrect allocated inode count %" PRIu64
H A Dhost.cpp165 blobfs_inode_t* inode = inode_block->GetInode(); local
166 inode->blob_size = length;
167 inode->num_blocks = MerkleTreeBlocks(*inode) + data_blocks;
168 inode->flags |= (compressed ? kBlobFlagLZ4Compressed : 0);
170 if ((status = bs->AllocateBlocks(inode->num_blocks,
171 reinterpret_cast<size_t*>(&inode->start_block))) != ZX_OK) {
174 } else if ((status = bs->WriteData(inode, merkle.get(), data)) != ZX_OK) {
176 } else if ((status = bs->WriteBitmap(inode->num_blocks, inode
485 WriteData(blobfs_inode_t* inode, const void* merkle_data, const void* blob_data) argument
572 blobfs_inode_t inode = *GetNode(node_index); local
[all...]
H A Dblobfs.cpp304 blobfs_inode_t* inode = blobfs_->GetNode(node_index); local
305 inode_ = *inode;
345 // Initialize the inode with known fields
693 blobfs_inode_t* inode = bs->GetNode(node_index); local
694 Digest digest(inode->merkle_root_hash);
865 void Blobfs::PersistNode(WritebackWork* wb, size_t node_index, const blobfs_inode_t& inode) { argument
868 ZX_DEBUG_ASSERT(inode.start_block >= kStartBlockMinimum);
875 *mapped_inode = inode;
889 // Write to disk if node has been allocated within inode table
1463 const blobfs_inode_t* inode local
[all...]
H A Dvnode.cpp139 a->inode = fuchsia_io_INO_UNKNOWN;
/fuchsia/zircon/system/ulib/blobfs/include/blobfs/
H A Dhost.h41 // Stores pointer to an inode's metadata and the matching block number
44 InodeBlock(size_t bno, blobfs_inode_t* inode, const Digest& digest) argument
46 inode_ = inode;
81 zx_status_t WriteData(blobfs_inode_t* inode, const void* merkle_data,
99 // Access the |index|th inode
158 // the superblock, block bitmap, inode table, and data blocks.
H A Dblobfs.h526 // Writes node data to the inode table and updates disk.
527 void PersistNode(WritebackWork* wb, size_t node_index, const blobfs_inode_t& inode);
529 // Frees a node, from both the reserved map and the inode table. If the inode was allocated
530 // in the inode table, write the deleted inode out to disk.
533 // Returns a reference to the |index|th inode of the node map.
549 // Enqueues an update for allocated inode/block counts.
/fuchsia/zircon/system/ulib/fdio/include/lib/fdio/
H A Dvfs.h34 uint64_t inode; member in struct:vnattr
/fuchsia/zircon/system/ulib/minfs/include/minfs/
H A Dinode-manager.h42 // Free an inode.
47 // Persist the inode to storage.
48 void Update(WriteTxn* txn, ino_t ino, const minfs_inode_t* inode);
50 // Load the inode from storage.
/fuchsia/zircon/system/ulib/fs/
H A Dpseudo-dir.cpp76 VTYPE_TO_DTYPE(attr.mode), attr.inode) != ZX_OK) {
H A Dconnection.cpp463 attributes.id = attr.inode;
/fuchsia/zircon/system/ulib/memfs/
H A Dvmo.cpp116 attr->inode = ino_;
H A Dfile.cpp133 attr->inode = ino_;
H A Ddirectory.cpp104 attr->inode = ino_;
/fuchsia/zircon/system/ulib/zxio/include/lib/zxio/
H A Dzxio.h231 // The inode number of the entry.
232 uint64_t inode; member in struct:zxio_dirent
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dctl.c873 const ctl_indexed_node_t *inode; local
882 inode = ctl_indexed_node(node->children);
883 node = inode->index(tsdn, mibp, *depthp, (size_t)index);
999 const ctl_indexed_node_t *inode; local
1002 inode = ctl_indexed_node(node->children);
1003 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]);
/fuchsia/zircon/system/ulib/fdio/
H A Dfidl.c211 out->inode = attr.id;
H A Dnamespace.c370 attr->inode = fuchsia_io_INO_UNKNOWN;
H A Dunistd.c834 s->st_ino = attr.inode;

Completed in 202 milliseconds