Lines Matching defs:Inode

8 #include "Inode.h"
39 Inode::Inode(Volume* volume, ino_t id)
52 TRACE("Inode::Inode(): ext2_inode: %lu, disk inode: %" B_PRIu32
64 TRACE("Inode::Inode(): Not creating the file cache\n");
69 TRACE("Inode: Failed initialization\n");
73 Inode::Inode(Volume* volume)
86 TRACE("Inode::Inode(): ext2_inode: %lu, disk inode: %" B_PRIu32 "\n",
93 Inode::~Inode()
95 TRACE("Inode destructor\n");
99 TRACE("Inode destructor: Done\n");
104 Inode::InitCheck()
111 Inode::WriteLockInTransaction(Transaction& transaction)
115 TRACE("Inode::WriteLockInTransaction(): Locking\n");
123 Inode::WriteBack(Transaction& transaction)
142 TRACE("Inode::WriteBack(): Inode ID: %" B_PRIdINO ", inode block: %"
159 TRACE("Inode::WriteBack() finished %" B_PRId32 "\n", Node().stream.direct[0]);
166 Inode::UpdateNodeFromDisk()
182 TRACE("Inode size: %" B_PRIu32 ", inode index: %" B_PRIu32 "\n",
201 ERROR("Inode::UpdateNodeFromDisk(%" B_PRIdOFF "): "
215 Inode::CheckPermissions(int accessMode) const
227 Inode::FindBlock(off_t offset, fsblock_t& block, uint32 *_count)
239 Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length)
246 Inode::WriteAt(Transaction& transaction, off_t pos, const uint8* buffer,
249 TRACE("Inode::WriteAt(%" B_PRIdOFF ", %p, *(%p) = %" B_PRIuSIZE ")\n", pos,
261 TRACE("Inode::WriteAt(): Starting transaction\n");
266 TRACE("Inode::WriteAt(): Updating modification time\n");
275 TRACE("Inode::WriteAt(): Old calc for end? %x:%x\n",
282 TRACE("Inode::WriteAt(): Old size: %" B_PRIdOFF ":%" B_PRIdOFF
313 TRACE("Inode::WriteAt(): Performing write: %p, %" B_PRIdOFF ", %p, %"
320 TRACE("Inode::WriteAt(): Done\n");
327 Inode::FillGapWithZeros(off_t start, off_t end)
329 TRACE("Inode::FileGapWithZeros(%" B_PRIdOFF " - %" B_PRIdOFF ")\n", start,
340 TRACE("Inode::FillGapWithZeros(): Calling file_cache_write(%p, NULL, "
356 Inode::Resize(Transaction& transaction, off_t size)
358 TRACE("Inode::Resize() ID:%" B_PRIdINO " size: %" B_PRIdOFF "\n", ID(),
368 TRACE("Inode::Resize(): old size: %" B_PRIdOFF ", new size: %" B_PRIdOFF
381 TRACE("Inode::Resize(): Updating file map and cache\n");
389 TRACE("Inode::Resize(): Writing back inode changes. Size: %" B_PRIdOFF
397 Inode::InitDirectory(Transaction& transaction, Inode* parent)
399 TRACE("Inode::InitDirectory()\n");
446 Inode::Unlink(Transaction& transaction)
449 TRACE("Inode::Unlink(): Current links: %" B_PRIu32 "\n", numLinks);
452 ERROR("Inode::Unlink(): no links\n");
459 TRACE("Inode::Unlink(): Putting inode in orphan list\n");
467 Inode* nextOrphan;
492 Inode::Create(Transaction& transaction, Inode* parent, const char* name,
494 Inode** _inode, fs_vnode_ops* vnodeOps, uint32 publishFlags)
496 TRACE("Inode::Create()\n");
512 TRACE("Inode::Create(): Looking up entry destination\n");
524 TRACE("Inode::Create(): Looking up to see if file already exists\n");
530 TRACE("Inode::Create(): File already exists\n");
535 Inode* inode;
539 TRACE("Inode::Create() Failed to get the inode from the "
555 TRACE("Inode::Create(): Truncating file\n");
573 TRACE("Inode::Create(): Done opening file\n");
576 TRACE("Inode::Create(): (mode & S_ATTR_DIR) == 0\n");
579 TRACE("Inode::Create(): (openMode & O_DIRECTORY) != 0\n");
584 TRACE("Inode::Create(): Restarting iterator\n");
595 TRACE("Inode::Create(): Allocating inode\n");
599 ERROR("Inode::Create(): AllocateInode() failed\n");
607 ERROR("Inode::Create(): AddEntry() failed\n");
612 TRACE("Inode::Create(): Creating inode\n");
613 Inode* inode = new(std::nothrow) Inode(volume);
617 TRACE("Inode::Create(): Getting node structure\n");
619 TRACE("Inode::Create(): Initializing inode data\n");
625 TRACE("Inode::Create(): Updating time\n");
644 TRACE("Inode::Create(): Updating ID\n");
648 TRACE("Inode::Create(): Initializing directory\n");
651 ERROR("Inode::Create(): InitDirectory() failed\n");
659 TRACE("Inode::Create(): Initializing extended attributes\n");
678 TRACE("Inode::Create(): Saving inode\n");
685 TRACE("Inode::Create(): Creating vnode\n");
713 TRACE("Inode::Create(): Deleting entries iterator\n");
715 TRACE("Inode::Create(): Entries iterator: %p\n", entries);
717 TRACE("Inode::Create(): Done\n");
724 Inode::CreateFileCache()
726 TRACE("Inode::CreateFileCache()\n");
731 TRACE("Inode::CreateFileCache(): Creating file cache: %" B_PRIu32 ", %"
736 ERROR("Inode::CreateFileCache(): Failed to create file cache\n");
742 ERROR("Inode::CreateFileCache(): Failed to create file map\n");
748 TRACE("Inode::CreateFileCache(): Done\n");
755 Inode::DeleteFileCache()
757 TRACE("Inode::DeleteFileCache()\n");
771 Inode::EnableFileCache()
782 Inode::DisableFileCache()
793 Inode::Sync()
803 Inode::TransactionDone(bool success)
814 Inode::RemovedFromTransaction()
816 TRACE("Inode::RemovedFromTransaction(): Unlocking\n");
824 Inode::_EnlargeDataStream(Transaction& transaction, off_t size)
829 TRACE("Inode::_EnlargeDataStream()\n");
839 TRACE("Inode::_EnlargeDataStream(): No need to allocate more blocks\n");
840 TRACE("Inode::_EnlargeDataStream(): Setting size to %" B_PRIdOFF "\n",
855 TRACE("Inode::_EnlargeDataStream(): Setting size to %" B_PRIdOFF "\n",
858 TRACE("Inode::_EnlargeDataStream(): Setting allocated block count to %"
865 Inode::_ShrinkDataStream(Transaction& transaction, off_t size)
867 TRACE("Inode::_ShrinkDataStream()\n");
880 TRACE("Inode::_ShrinkDataStream(): No need to allocate more blocks\n");
881 TRACE("Inode::_ShrinkDataStream(): Setting size to %" B_PRIdOFF "\n",
903 Inode::NumBlocks()
916 Inode::_SetNumBlocks(uint64 numBlocks)
938 Inode::IncrementNumLinks(Transaction& transaction)
950 Inode::_InodeChecksum(ext2_inode* inode)
981 Inode::_DirEntryTail(uint8* block) const
989 Inode::_DirEntryChecksum(uint8* block, uint32 id, uint32 gen) const
1002 Inode::SetDirEntryChecksum(uint8* block, uint32 id, uint32 gen)
1014 Inode::SetDirEntryChecksum(uint8* block)
1021 Inode::_ExtentLength(ext2_extent_stream* stream) const
1030 Inode::_ExtentChecksum(ext2_extent_stream* stream) const
1044 Inode::SetExtentChecksum(ext2_extent_stream* stream)
1056 Inode::VerifyExtentChecksum(ext2_extent_stream* stream)