/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | clouddisk_rdbstore_mock.cpp | 60 int32_t CloudDiskRdbStore::LookUp(const std::string &parentCloudId, in LookUp() argument 71 int32_t CloudDiskRdbStore::SetAttr(const std::string &fileName, const std::string &parentCloudId, in SetAttr() argument 85 int32_t CloudDiskRdbStore::Create(const std::string &cloudId, const std::string &parentCloudId, in Create() argument 91 int32_t CloudDiskRdbStore::MkDir(const std::string &cloudId, const std::string &parentCloudId, in MkDir() argument 97 int32_t CloudDiskRdbStore::Write(const std::string &fileName, const std::string &parentCloudId, in Write() argument 103 int32_t CloudDiskRdbStore::LocationSetXattr(const std::string &name, const std::string &parentCloudId, in LocationSetXattr() argument 117 int32_t CloudDiskRdbStore::GetParentCloudId(const std::string &cloudId, std::string &parentCloudId) in GetParentCloudId() argument 122 int32_t CloudDiskRdbStore::RecycleSetXattr(const std::string &name, const std::string &parentCloudId, in RecycleSetXattr() argument 134 const std::string &parentCloudId) in LocationGetXattr() 175 const std::string &name, const std::string &parentCloudId) in SetXAttr() 133 LocationGetXattr(const std::string &name, const std::string &key, std::string &value, const std::string &parentCloudId) LocationGetXattr() argument 174 SetXAttr(const std::string &cloudId, const std::string &key, const std::string &value, const std::string &name, const std::string &parentCloudId) SetXAttr() argument 222 GetParentNode(const std::string &parentCloudId, std::string &nextCloudId, std::string &fileName) GetParentNode() argument 228 GetUriFromDB(const std::string &parentCloudId, std::string &uri) GetUriFromDB() argument [all...] |
H A D | file_operations_cloud_mock.cpp | 354 string parentCloudId = inoPtr->cloudId; in GetChildInfos() local 358 int32_t err = rdbStore->ReadDir(parentCloudId, childInfos); in GetChildInfos() 360 LOGE("Readdir failed cloudId:%{public}s err:%{public}d", parentCloudId.c_str(), err); in GetChildInfos() 497 CacheNode newNode = {.parentCloudId = parentInode->cloudId, .fileName = inoPtr->fileName}; in GetLocation() 612 static void UpdateCloudStore(CloudDiskFuseData *data, const std::string &fileName, const std::string &parentCloudId, in UpdateCloudStore() argument 624 static void UploadLocalFile(CloudDiskFuseData *data, const std::string &fileName, const std::string &parentCloudId, in UploadLocalFile() argument
|
/foundation/filemanagement/dfs_service/services/clouddisk_database/include/ |
H A D | clouddisk_rdbstore.h | 42 int32_t LookUp(const std::string &parentCloudId, const std::string &fileName, CloudDiskFileInfo &info); 44 int32_t SetAttr(const std::string &fileName, const std::string &parentCloudId, const std::string &cloudId, 47 int32_t MkDir(const std::string &cloudId, const std::string &parentCloudId, 49 int32_t Create(const std::string &cloudId, const std::string &parentCloudId, 51 int32_t Write(const std::string &fileName, const std::string &parentCloudId, const std::string &cloudId); 55 const std::string &name = "", const std::string &parentCloudId = ""); 59 int32_t RecycleSetXattr(const std::string &name, const std::string &parentCloudId, 61 int32_t LocationSetXattr(const std::string &name, const std::string &parentCloudId, 65 const std::string &parentCloudId); 70 int32_t GetParentCloudId(const std::string &cloudId, std::string &parentCloudId); [all...] |
H A D | clouddisk_db_const.h | 59 std::string parentCloudId; member
|
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/ |
H A D | clouddisk_rdbstore_test.cpp | 164 const std::string parentCloudId = ""; in HWTEST_F() local 169 int32_t ret = clouddiskrdbStore_->LookUp(parentCloudId, fileName, info); in HWTEST_F() 181 const std::string parentCloudId = "rootId"; in HWTEST_F() local 187 int32_t ret = clouddiskrdbStore_->LookUp(parentCloudId, fileName, info); in HWTEST_F() 199 const std::string parentCloudId = "rootId"; in HWTEST_F() local 204 int32_t ret = clouddiskrdbStore_->LookUp(parentCloudId, fileName, info); in HWTEST_F() 267 const std::string parentCloudId = "100"; in HWTEST_F() local 272 int32_t ret = clouddiskrdbStore_->SetAttr(fileName, parentCloudId, cloudId, size); in HWTEST_F() 285 const std::string parentCloudId = "100"; in HWTEST_F() local 290 int32_t ret = clouddiskrdbStore_->SetAttr(fileName, parentCloudId, cloudI in HWTEST_F() 303 const std::string parentCloudId = "100"; HWTEST_F() local 323 const std::string parentCloudId = "100"; HWTEST_F() local 343 const std::string parentCloudId = "100"; HWTEST_F() local 397 const std::string parentCloudId = "100"; HWTEST_F() local 415 const std::string parentCloudId = "100"; HWTEST_F() local 433 const std::string parentCloudId = "100"; HWTEST_F() local 451 const std::string parentCloudId = ""; HWTEST_F() local 469 const std::string parentCloudId = "100"; HWTEST_F() local 488 const std::string parentCloudId = "100"; HWTEST_F() local 509 const std::string parentCloudId = "100"; HWTEST_F() local 530 const std::string parentCloudId = "100"; HWTEST_F() local 551 const std::string parentCloudId = "100"; HWTEST_F() local 569 const std::string parentCloudId = "100"; HWTEST_F() local 587 const std::string parentCloudId = ""; HWTEST_F() local 605 const std::string parentCloudId = "100"; HWTEST_F() local 625 const std::string parentCloudId = "100"; HWTEST_F() local 645 const std::string parentCloudId = "100"; HWTEST_F() local 665 const std::string parentCloudId = "100"; HWTEST_F() local 683 const std::string parentCloudId = "rootId"; HWTEST_F() local 701 const std::string parentCloudId = "rootId"; HWTEST_F() local 721 const std::string parentCloudId = "rootId"; HWTEST_F() local 741 const std::string parentCloudId = "rootId"; HWTEST_F() local 760 const std::string parentCloudId = "100"; HWTEST_F() local 778 const std::string parentCloudId = "100"; HWTEST_F() local 798 const std::string parentCloudId = "100"; HWTEST_F() local 818 const std::string parentCloudId = "100"; HWTEST_F() local 899 std::string parentCloudId = "mock"; HWTEST_F() local 918 std::string parentCloudId = "mock"; HWTEST_F() local 939 std::string parentCloudId = "mock"; HWTEST_F() local 960 std::string parentCloudId = "test"; HWTEST_F() local 981 const std::string parentCloudId = "100"; HWTEST_F() local 999 const std::string parentCloudId = "100"; HWTEST_F() local 1017 const std::string parentCloudId = "100"; HWTEST_F() local 1037 const std::string parentCloudId = "100"; HWTEST_F() local 1059 const std::string parentCloudId = "100"; HWTEST_F() local 1083 const std::string parentCloudId = "mock"; HWTEST_F() local 1178 const std::string parentCloudId = "rootId"; HWTEST_F() local 1197 const std::string parentCloudId = "rootId"; HWTEST_F() local 1216 const std::string parentCloudId = "rootId"; HWTEST_F() local 1683 const std::string parentCloudId = "100"; HWTEST_F() local 1702 const std::string parentCloudId = "100"; HWTEST_F() local 1721 const std::string parentCloudId = "100"; HWTEST_F() local 1740 const std::string parentCloudId = "100"; HWTEST_F() local 1759 const std::string parentCloudId = "100"; HWTEST_F() local 2222 const std::string parentCloudId = ""; HWTEST_F() local 2240 const std::string parentCloudId = "100"; HWTEST_F() local 2260 const std::string parentCloudId = "100"; HWTEST_F() local 2282 const std::string parentCloudId = "100"; HWTEST_F() local 2305 const std::string parentCloudId = "100"; HWTEST_F() local 2328 const std::string parentCloudId = ""; HWTEST_F() local 2345 const std::string parentCloudId = "100"; HWTEST_F() local 2364 const std::string parentCloudId = "100"; HWTEST_F() local [all...] |
/foundation/filemanagement/dfs_service/services/clouddisk_database/src/ |
H A D | clouddisk_rdbstore.cpp | 181 int32_t CloudDiskRdbStore::LookUp(const std::string &parentCloudId, in LookUp() argument 185 if (fileName.empty() || parentCloudId.empty()) { in LookUp() 191 .EqualTo(FileColumn::PARENT_CLOUD_ID, parentCloudId)->And() in LookUp() 223 int32_t CloudDiskRdbStore::SetAttr(const std::string &fileName, const std::string &parentCloudId, in SetAttr() argument 259 auto metaFile = MetaFileMgr::GetInstance().GetCloudDiskMetaFile(userId_, bundleName_, parentCloudId); in SetAttr() 376 const std::string &fileName, const std::string &parentCloudId) in CreateDentry() 388 auto metaFile = MetaFileMgr::GetInstance().GetCloudDiskMetaFile(userId, bundleName, parentCloudId); in CreateDentry() 407 static void HandleCreateValue(ValuesBucket &fileInfo, const std::string &cloudId, const std::string &parentCloudId, in HandleCreateValue() argument 412 fileInfo.PutString(FileColumn::PARENT_CLOUD_ID, parentCloudId); in HandleCreateValue() 418 int32_t CloudDiskRdbStore::Create(const std::string &cloudId, const std::string &parentCloudId, in Create() argument 375 CreateDentry(MetaBase &metaBase, uint32_t userId, const std::string &bundleName, const std::string &fileName, const std::string &parentCloudId) CreateDentry() argument 474 MkDir(const std::string &cloudId, const std::string &parentCloudId, const std::string &directoryName, bool noNeedUpload) MkDir() argument 554 WriteUpdateDentry(MetaBase &metaBase, uint32_t userId, const std::string &bundleName, const std::string &fileName, const std::string &parentCloudId) WriteUpdateDentry() argument 571 Write(const std::string &fileName, const std::string &parentCloudId, const std::string &cloudId) Write() argument 622 LocationSetXattr(const std::string &name, const std::string &parentCloudId, const std::string &cloudId, const std::string &value) LocationSetXattr() argument 704 GetParentCloudId(const std::string &cloudId, std::string &parentCloudId) GetParentCloudId() argument 726 RecycleSetXattr(const std::string &name, const std::string &parentCloudId, const std::string &cloudId, const std::string &value) RecycleSetXattr() argument 825 LocationGetXattr(const std::string &name, const std::string &key, std::string &value, const std::string &parentCloudId) LocationGetXattr() argument 1040 SetXAttr(const std::string &cloudId, const std::string &key, const std::string &value, const std::string &name, const std::string &parentCloudId) SetXAttr() argument 1291 GetParentNode(const std::string &parentCloudId, std::string &nextCloudId, std::string &fileName) GetParentNode() argument 1320 GetUriFromDB(const std::string &parentCloudId, std::string &uri) GetUriFromDB() argument 1679 GenerateDentryRecursively(RdbStore &store, const string &parentCloudId) GenerateDentryRecursively() argument [all...] |
H A D | clouddisk_notify_utils.cpp | 165 while (tmpCacheNode.parentCloudId != rootId) { in GetUriFromCache() 166 ret = GetCacheNode(tmpCacheNode.parentCloudId, tmpCacheNode); in GetUriFromCache()
|
H A D | clouddisk_rdb_utils.cpp | 103 rowEntity.Get(FileColumn::PARENT_CLOUD_ID).GetString(info.parentCloudId);
in FillFileInfo()
|
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | file_operations_cloud.cpp | 615 string parentCloudId = inoPtr->cloudId; in GetChildInfos() local 619 int32_t err = rdbStore->ReadDir(parentCloudId, childInfos); in GetChildInfos() 621 LOGE("Readdir failed cloudId:%{public}s err:%{public}d", parentCloudId.c_str(), err); in GetChildInfos() 790 string parentCloudId; in HandleCloudRecycle() local 795 int32_t ret = rdbStore->GetParentCloudId(inoPtr->cloudId, parentCloudId); in HandleCloudRecycle() 798 LOGE("fail to get parentCloudId"); in HandleCloudRecycle() 802 parentCloudId = parentInode->cloudId; in HandleCloudRecycle() 811 inoPtr->fileName, parentCloudId); in HandleCloudRecycle() 943 CacheNode newNode = {.parentCloudId = parentInode->cloudId, .fileName = inoPtr->fileName}; in GetLocation() 1303 static void UpdateCloudStore(CloudDiskFuseData *data, const std::string &fileName, const std::string &parentCloudId, in UpdateCloudStore() argument 1350 string parentCloudId = parentInode->cloudId; UpdateCacheDentrySize() local 1396 UploadLocalFile(CloudDiskFuseData *data, const std::string &fileName, const std::string &parentCloudId, int fileDirty, shared_ptr<CloudDiskInode> inoPtr) UploadLocalFile() argument 1440 string parentCloudId = parentInode->cloudId; Release() local [all...] |
/foundation/filemanagement/dfs_service/utils/dentry/include/ |
H A D | meta_file.h | 49 explicit MetaFile(uint32_t userId, const std::string &bundleName, const std::string &parentCloudId); 144 const std::string &name, const std::string &parentCloudId, int64_t rowId); 146 const std::string &name, const std::string &parentCloudId, int64_t rowId);
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/dentry/ |
H A D | dentry_meta_file_clouddisk_test.cpp | 330 string parentCloudId = "rootId"; in HWTEST_F() local 333 name, parentCloudId, rowId); in HWTEST_F() 356 string parentCloudId = "rootId"; in HWTEST_F() local 359 name, parentCloudId, rowId); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/ |
H A D | data_sync_const.h | 50 std::string parentCloudId; member
|
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/ |
H A D | meta_file_clouddisk_mock.cpp | 549 const std::string &parentCloudId, int64_t rowId) in MoveIntoRecycleDentryfile() 551 if (parentCloudId == "mock") { in MoveIntoRecycleDentryfile() 558 const std::string &name, const std::string &parentCloudId, int64_t rowId) in RemoveFromRecycleDentryfile() 560 if (parentCloudId == "mock") { in RemoveFromRecycleDentryfile() 548 MoveIntoRecycleDentryfile(uint32_t userId, const std::string &bundleName, const std::string &name, const std::string &parentCloudId, int64_t rowId) MoveIntoRecycleDentryfile() argument 557 RemoveFromRecycleDentryfile(uint32_t userId, const std::string &bundleName, const std::string &name, const std::string &parentCloudId, int64_t rowId) RemoveFromRecycleDentryfile() argument
|
H A D | clouddisk_rdb_utils_mock.cpp | 62 rowEntity.Get(FileColumn::PARENT_CLOUD_ID).GetString(info.parentCloudId); in FillFileInfo()
|
/foundation/filemanagement/dfs_service/utils/inner_api/ |
H A D | cloud_file_utils.h | 26 std::string parentCloudId; member
|
/foundation/filemanagement/dfs_service/test/fuzztest/clouddisknotify_fuzzer/ |
H A D | clouddisknotify_fuzzer.cpp | 46 cacheNode.parentCloudId = fuzzData.GetStringFromData(len); in TryNotifyServiceFuzzTest()
|
/foundation/filemanagement/dfs_service/utils/dentry/src/ |
H A D | meta_file_clouddisk.cpp | 724 const std::string &parentCloudId, int64_t rowId) in MoveIntoRecycleDentryfile() 727 auto srcMetaFile = MetaFileMgr::GetInstance().GetCloudDiskMetaFile(userId, bundleName, parentCloudId); in MoveIntoRecycleDentryfile() 753 const std::string &name, const std::string &parentCloudId, int64_t rowId) in RemoveFromRecycleDentryfile() 756 auto dstMetaFile = MetaFileMgr::GetInstance().GetCloudDiskMetaFile(userId, bundleName, parentCloudId); in RemoveFromRecycleDentryfile() 723 MoveIntoRecycleDentryfile(uint32_t userId, const std::string &bundleName, const std::string &name, const std::string &parentCloudId, int64_t rowId) MoveIntoRecycleDentryfile() argument 752 RemoveFromRecycleDentryfile(uint32_t userId, const std::string &bundleName, const std::string &name, const std::string &parentCloudId, int64_t rowId) RemoveFromRecycleDentryfile() argument
|