Lines Matching refs:name
281 const std::string name = base.name;
282 uint32_t slots = GetDentrySlots(name.length());
286 de->namelen = name.length();
287 errno_t ret = memcpy_s(d.fileName[bitPos], slots * DENTRY_NAME_LEN, name.c_str(), name.length());
289 LOGE("memcpy_s failed, dstLen = %{public}d, srcLen = %{public}zu", slots * DENTRY_NAME_LEN, name.length());
340 uint32_t namehash = CloudDisk::CloudFileUtils::DentryHash(base.name);
360 bitPos = RoomForFilename(dentryBlk.bitmap, GetDentrySlots(base.name.length()), DENTRY_PER_GROUP);
385 std::string name{};
394 ctx->name = base.name;
397 ctx->hash = CloudDisk::CloudFileUtils::DentryHash(ctx->name);
412 static HmdfsDentry *FindInBlock(HmdfsDentryGroup &dentryBlk, uint32_t namehash, const std::string &name)
430 if (de->hash == namehash && de->namelen == name.length() &&
431 !memcmp(name.c_str(), dentryBlk.fileName[bitPos], de->namelen)) {
460 de = FindInBlock(*dentryBlk, ctx->hash, ctx->name);
593 MetaBase base{oldBase.name};
596 LOGE("ret = %{public}d, lookup %s failed", ret, base.name.c_str());
600 base.name = newName;
603 LOGE("ret = %{public}d, create %s failed", ret, base.name.c_str());
607 base.name = oldBase.name;
610 LOGE("ret = %{public}d, remove %s failed", ret, oldBase.name.c_str());
611 base.name = newName;
627 std::string name(reinterpret_cast<const char *>(dentryGroup.fileName[i]), len);
629 MetaBase base(name);