Searched refs:HmdfsDentryGroup (Results 1 - 3 of 3) sorted by relevance
/foundation/filemanagement/dfs_service/utils/dentry/src/ |
H A D | meta_file_clouddisk.cpp | 64 struct HmdfsDentryGroup { struct 71 static_assert(sizeof(HmdfsDentryGroup) == DENTRYGROUP_SIZE); 289 static bool UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() 359 HmdfsDentryGroup dentryBlk = {0}; in DoCreate() 405 std::unique_ptr<HmdfsDentryGroup> page{nullptr}; 417 static std::unique_ptr<HmdfsDentryGroup> FindDentryPage(uint64_t index, DcacheLookupCtx *ctx) in FindDentryPage() 419 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() 429 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() 522 ssize_t size = FileUtils::WriteFile(fd_, ctx.page.get(), ipos, sizeof(HmdfsDentryGroup)); in DoRemove() 523 if (size != sizeof(HmdfsDentryGroup)) { in DoRemove() [all...] |
H A D | meta_file.cpp | 66 struct HmdfsDentryGroup { struct 73 static_assert(sizeof(HmdfsDentryGroup) == DENTRYGROUP_SIZE); 278 static bool UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() 336 HmdfsDentryGroup dentryBlk = {0}; in DoCreate() 388 std::unique_ptr<HmdfsDentryGroup> page{nullptr}; 400 static std::unique_ptr<HmdfsDentryGroup> FindDentryPage(uint64_t index, DcacheLookupCtx *ctx) in FindDentryPage() 402 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() 412 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() 522 ssize_t size = FileUtils::WriteFile(fd_, ctx.page.get(), ipos, sizeof(HmdfsDentryGroup)); in DoRemove() 523 if (size != sizeof(HmdfsDentryGroup)) { in DoRemove() [all...] |
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/ |
H A D | meta_file_clouddisk_mock.cpp | 62 struct HmdfsDentryGroup { struct 314 static void UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos) in UpdateDentry() 371 std::unique_ptr<HmdfsDentryGroup> page{nullptr}; 383 static std::unique_ptr<HmdfsDentryGroup> FindDentryPage(uint64_t index, DcacheLookupCtx *ctx) in FindDentryPage() 385 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() 395 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() 491 static int32_t DecodeDentrys(const HmdfsDentryGroup &dentryGroup, std::vector<MetaBase> &bases) in DecodeDentrys()
|
Completed in 7 milliseconds