Home
last modified time | relevance | path

Searched refs:dentryBlk (Results 1 - 3 of 3) sorted by relevance

/foundation/filemanagement/dfs_service/utils/dentry/src/
H A Dmeta_file_clouddisk.cpp359 HmdfsDentryGroup dentryBlk = {0}; in DoCreate() local
376 if (FileUtils::ReadFile(fd_, pos, DENTRYGROUP_SIZE, &dentryBlk) != DENTRYGROUP_SIZE) { in DoCreate()
379 bitPos = RoomForFilename(dentryBlk.bitmap, GetDentrySlots(base.name.length()), DENTRY_PER_GROUP); in DoCreate()
388 if (!UpdateDentry(dentryBlk, base, namehash, bitPos)) { in DoCreate()
392 int size = FileUtils::WriteFile(fd_, &dentryBlk, pos, DENTRYGROUP_SIZE); in DoCreate()
419 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() local
422 ssize_t size = FileUtils::ReadFile(ctx->fd, pos, DENTRYGROUP_SIZE, dentryBlk.get()); in FindDentryPage()
426 return dentryBlk; in FindDentryPage()
429 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() argument
436 if (!BitOps::TestBit(bitPos, dentryBlk in FindInBlock()
472 auto dentryBlk = FindDentryPage(bidx, ctx); InLevel() local
[all...]
H A Dmeta_file.cpp336 HmdfsDentryGroup dentryBlk = {0}; in DoCreate() local
357 if (FileUtils::ReadFile(fd_, pos, DENTRYGROUP_SIZE, &dentryBlk) != DENTRYGROUP_SIZE) { in DoCreate()
360 bitPos = RoomForFilename(dentryBlk.bitmap, GetDentrySlots(base.name.length()), DENTRY_PER_GROUP); in DoCreate()
370 if (!UpdateDentry(dentryBlk, base, namehash, bitPos)) { in DoCreate()
374 int size = FileUtils::WriteFile(fd_, &dentryBlk, pos, DENTRYGROUP_SIZE); in DoCreate()
402 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() local
405 ssize_t size = FileUtils::ReadFile(ctx->fd, pos, DENTRYGROUP_SIZE, dentryBlk.get()); in FindDentryPage()
409 return dentryBlk; in FindDentryPage()
412 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() argument
419 if (!BitOps::TestBit(bitPos, dentryBlk in FindInBlock()
455 auto dentryBlk = FindDentryPage(bidx, ctx); InLevel() local
[all...]
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/
H A Dmeta_file_clouddisk_mock.cpp385 auto dentryBlk = std::make_unique<HmdfsDentryGroup>(); in FindDentryPage() local
388 ssize_t size = FileUtils::ReadFile(ctx->fd, pos, DENTRYGROUP_SIZE, dentryBlk.get()); in FindDentryPage()
392 return dentryBlk; in FindDentryPage()
395 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name) in FindInBlock() argument
402 if (!BitOps::TestBit(bitPos, dentryBlk.bitmap)) { in FindInBlock()
407 de = &dentryBlk.nsl[bitPos]; in FindInBlock()
414 !memcmp(name.c_str(), dentryBlk.fileName[bitPos], de->namelen)) { in FindInBlock()
438 auto dentryBlk = FindDentryPage(bidx, ctx); in InLevel() local
439 if (dentryBlk == nullptr) { in InLevel()
443 de = FindInBlock(*dentryBlk, ct in InLevel()
[all...]

Completed in 3 milliseconds