Lines Matching defs:HmdfsDentryGroup
66 struct HmdfsDentryGroup {
73 static_assert(sizeof(HmdfsDentryGroup) == DENTRYGROUP_SIZE);
278 static bool UpdateDentry(HmdfsDentryGroup &d, const MetaBase &base, uint32_t nameHash, uint32_t bitPos)
336 HmdfsDentryGroup dentryBlk = {0};
388 std::unique_ptr<HmdfsDentryGroup> page{nullptr};
400 static std::unique_ptr<HmdfsDentryGroup> FindDentryPage(uint64_t index, DcacheLookupCtx *ctx)
402 auto dentryBlk = std::make_unique<HmdfsDentryGroup>();
412 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name)
522 ssize_t size = FileUtils::WriteFile(fd_, ctx.page.get(), ipos, sizeof(HmdfsDentryGroup));
523 if (size != sizeof(HmdfsDentryGroup)) {
583 ssize_t size = FileUtils::WriteFile(fd_, ctx.page.get(), ipos, sizeof(struct HmdfsDentryGroup));
584 if (size != sizeof(struct HmdfsDentryGroup)) {
619 static int32_t DecodeDentrys(const HmdfsDentryGroup &dentryGroup, std::vector<MetaBase> &bases)
657 HmdfsDentryGroup dentryGroup;
660 uint64_t off = i * sizeof(HmdfsDentryGroup);
661 FileUtils::ReadFile(fd_, off, sizeof(HmdfsDentryGroup), &dentryGroup);