/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab_mount.c | 78 static const SUPPORTED_FILE_SYSTEM *GetSupportedFileSystemInfo(const char *fsType) in GetSupportedFileSystemInfo() argument 81 sizeof(SUPPORTED_FILE_SYSTEM), fsType, 0, extendedFileSystems_); in GetSupportedFileSystemInfo() 84 static bool IsSupportedDataType(const char *fsType) in IsSupportedDataType() argument 86 const SUPPORTED_FILE_SYSTEM *item = GetSupportedFileSystemInfo(fsType); in IsSupportedDataType() 96 bool IsSupportedFilesystem(const char *fsType) in IsSupportedFilesystem() argument 98 const SUPPORTED_FILE_SYSTEM *item = GetSupportedFileSystemInfo(fsType); in IsSupportedFilesystem() 195 int DoFormat(const char *devPath, const char *fsType) in DoFormat() argument 197 if (devPath == NULL || fsType == NULL) { in DoFormat() 201 if (!IsSupportedFilesystem(fsType)) { in DoFormat() 202 BEGET_LOGE("Do not support filesystem \" %s \"", fsType); in DoFormat() 384 Mount(const char *source, const char *target, const char *fsType, unsigned long flags, const char *data) Mount() argument [all...] |
H A D | fstab.c | 111 if (item->fsType != NULL) { in ReleaseFstabItem() 112 free(item->fsType); in ReleaseFstabItem() 113 item->fsType = NULL; in ReleaseFstabItem() 164 item->fsType = strdup(p); in ParseFstabPerLine() 165 BEGET_ERROR_CHECK(item->fsType != NULL, break, "strdup fsType failed."); in ParseFstabPerLine()
|
/base/startup/appspawn/test/mock/ |
H A D | app_system_stub.c | 166 const char *fsType, unsigned long mountFlags, const char *options, mode_t mountSharedFlag)
in MountStub() 176 printf("args->fsType %s == %s \n", args->fsType, fsType);
in MountStub() 184 (args->fsType == NULL || (fsType != NULL && strcmp(fsType, args->fsType) == 0)) &&
in MountStub() 165 MountStub(const char *originPath, const char *destinationPath, const char *fsType, unsigned long mountFlags, const char *options, mode_t mountSharedFlag) MountStub() argument
|
/base/update/updater/services/fs_manager/ |
H A D | mount.cpp | 82 LOG(DEBUG) << "\tFs type : " << item->fsType; in LoadFstab() 272 if (!IsSupportedFilesystem(item->fsType)) { in FormatPartition() 273 LOG(ERROR) << "Try to format " << item->mountPoint << " with unsupported file system type: " << item->fsType; in FormatPartition() 286 int ret = DoFormat(item->deviceName, item->fsType); in FormatPartition() 308 std::string fsType(item->fsType); in SetupPartitions() 309 if (mountPoint == "/" || mountPoint == "/tmp" || fsType == "none" || in SetupPartitions()
|
H A D | partitions.cpp | 375 part->fsType = ""; in NewPartition()
|
/base/startup/init/interfaces/innerkits/include/fs_manager/ |
H A D | fs_manager.h | 60 char *fsType; // File system type member 95 bool IsSupportedFilesystem(const char *fsType); 96 int DoFormat(const char *devPath, const char *fsType);
|
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
H A D | dopartitions_fuzzer.cpp | 36 part.fsType = "emmc"; in InitEmmcPartition()
|
/base/update/updater/services/include/fs_manager/ |
H A D | partitions.h | 89 std::string fsType; // File system type, ext4, f2fs etc. member
|
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_utils.h | 48 std::string fsType; member 56 const char *fsType, unsigned long mountFlags,
|
H A D | appspawn_mount_template.c | 185 APPSPAPWN_DUMP(" sandbox node fsType: %{public}s", tmp->fsType ? tmp->fsType : "null"); in DumpMountPathMountNode()
|
H A D | sandbox_utils.cpp | 259 const char *fsType, unsigned long mountFlags, in DoAppSandboxMountOnce() 273 originPath, destinationPath, fsType, mountFlags, options, mountSharedFlag); in DoAppSandboxMountOnce() 274 ret = mount(originPath, destinationPath, fsType, mountFlags, options); in DoAppSandboxMountOnce() 641 const std::string &fsType, unsigned long mountFlags) in DoDlpAppMountStrategy() 667 srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options); in DoDlpAppMountStrategy() 668 ret = mount(srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options); in DoDlpAppMountStrategy() 686 const std::string &srcPath, const std::string &sandboxPath, const std::string &fsType, unsigned long mountFlags) in HandleSpecialAppMount() 694 if (!fsType.empty()) { in HandleSpecialAppMount() 695 return DoDlpAppMountStrategy(appProperty, srcPath, sandboxPath, fsType, mountFlags); in HandleSpecialAppMount() 727 std::string fsType in GetSandboxFsType() local 258 DoAppSandboxMountOnce(const char *originPath, const char *destinationPath, const char *fsType, unsigned long mountFlags, const char *options, mode_t mountSharedFlag) DoAppSandboxMountOnce() argument 639 DoDlpAppMountStrategy(const AppSpawningCtx *appProperty, const std::string &srcPath, const std::string &sandboxPath, const std::string &fsType, unsigned long mountFlags) DoDlpAppMountStrategy() argument 685 HandleSpecialAppMount(const AppSpawningCtx *appProperty, const std::string &srcPath, const std::string &sandboxPath, const std::string &fsType, unsigned long mountFlags) HandleSpecialAppMount() argument [all...] |
H A D | appspawn_sandbox.h | 347 const char *fsType; member 368 const char *fsType; member
|
H A D | appspawn_sandbox.c | 100 arg->fsType, arg->mountSharedFlag == MS_SHARED ? "MS_SHARED" : "MS_SLAVE", in SandboxMountPath() 103 int ret = mount(arg->originPath, arg->destinationPath, arg->fsType, arg->mountFlags, arg->options); in SandboxMountPath() 258 args->fsType = tmp->fsType; in GetMountArgs() 317 args->fsType, args->mountSharedFlag == MS_SHARED ? "MS_SHARED" : "MS_SLAVE", in SandboxMountFusePath() 322 MountArg mountArg = {args->originPath, args->destinationPath, args->fsType, args->mountFlags, options, MS_SHARED}; in SandboxMountFusePath()
|
/base/update/updater/services/updater_binary/ |
H A D | update_partitions.cpp | 80 item = cJSON_GetObjectItem(thisPartition, "fsType"); in SetPartitionInfo() 82 LOG(ERROR) << "Error get fsType"; in SetPartitionInfo() 85 myPartition->fsType = (item->valuestring); in SetPartitionInfo() 89 myPartition->partName << " " << myPartition->fsType; in SetPartitionInfo()
|
/base/startup/init/test/unittest/innerkits/ |
H A D | innerkits_unittest.cpp | 255 fstabItem.fsType = strdup("notSupport"); in HWTEST_F() 259 if (fstabItem.fsType != nullptr) { in HWTEST_F() 260 free(fstabItem.fsType); in HWTEST_F() 261 fstabItem.fsType = nullptr; in HWTEST_F()
|
/base/update/sys_installer/services/module_update/util/include/ |
H A D | module_file.h | 90 char fsType[FS_TYPE_MAX_SIZE]; member
|
/base/update/updater/test/unittest/fs_manager/ |
H A D | do_partition_unittest.cpp | 75 part.fsType = "emmc";
in InitEmmcPartition()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_sandbox_new_test.cpp | 1184 args.fsType = "sharefs"; in HWTEST_F() 1237 args.fsType = "sharefs"; in HWTEST_F() 1295 args.fsType = "sharefs"; in HWTEST_F() 1349 args.fsType = "fuse"; in HWTEST_F() 1401 args.fsType = "fuse"; in HWTEST_F() 1515 args.fsType = "sharefs"; in HWTEST_F() 1567 args.fsType = nullptr; in HWTEST_F() 1620 args.fsType = nullptr; in HWTEST_F() 1673 args.fsType = "epfs"; in HWTEST_F() 1726 args.fsType in HWTEST_F() [all...] |
H A D | app_spawn_sandbox_test.cpp | 1245 std::string fsType = OHOS::AppSpawn::SandboxUtils::GetSandboxFsType(j_secondConfig); in HWTEST_F() local 1246 int ret = strcmp(fsType.c_str(), "sharefs"); in HWTEST_F() 1281 int ret = strcmp(mountConfig.fsType.c_str(), "sharefs"); in HWTEST_F() 1315 int ret = strcmp(mountConfig.fsType.c_str(), "sharefs"); in HWTEST_F()
|
/base/update/sys_installer/services/module_update/src/ |
H A D | module_update.cpp | 366 LOG(INFO) << "Loopback device created: " << loopbackDevice.name << " fsType=" << imageStat.fsType; in MountModulePackage() 377 ret = mount(blockDevice.c_str(), mountPoint.c_str(), imageStat.fsType, mountFlags, nullptr); in MountModulePackage()
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
H A D | account_iam_manager_test.cpp | 167 int32_t NotifyVolumeMounted(std::string volumeId, int fsType, std::string fsUuid, in NotifyVolumeMounted() argument 228 int32_t Format(std::string volumeId, std::string fsType) in Format() argument
|
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_file.cpp | 106 errno_t ret = strcpy_s(imageStat.fsType, FS_TYPE_MAX_SIZE, fsTypePtr); in ParseImageStat()
|