/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab_mount.c | 61 bool IsSupportedFilesystem(const char *fsType) in IsSupportedFilesystem() argument 64 if (fsType != NULL) { in IsSupportedFilesystem() 68 if (strcmp(supportedFilesystem[index++], fsType) == 0) { in IsSupportedFilesystem() 98 int DoFormat(const char *devPath, const char *fsType) in DoFormat() argument 100 if (devPath == NULL || fsType == NULL) { in DoFormat() 104 if (!IsSupportedFilesystem(fsType)) { in DoFormat() 105 BEGET_LOGE("Do not support filesystem \" %s \"", fsType); in DoFormat() 109 if (strcmp(fsType, "ext4") == 0) { in DoFormat() 116 "/bin/mke2fs", "-F", "-t", (char *)fsType, "-b", blockSizeBuffer, (char *)devPath, NULL in DoFormat() 121 } else if (strcmp(fsType, "f2fs") == 0) { in DoFormat() [all …]
|
D | fstab.c | 103 if (item->fsType != NULL) { in ReleaseFstabItem() 104 free(item->fsType); in ReleaseFstabItem() 105 item->fsType = NULL; in ReleaseFstabItem() 167 item->fsType = strdup(p); in ParseFstabPerLine()
|
/base/startup/init/interfaces/innerkits/include/fs_manager/ |
D | fs_manager.h | 54 char *fsType; // File system type member 89 bool IsSupportedFilesystem(const char *fsType); 90 int DoFormat(const char *devPath, const char *fsType);
|
/base/update/updater/services/fs_manager/ |
D | mount.cpp | 80 LOG(DEBUG) << "\tFs type : " << item->fsType; in LoadFstab() 266 if (!IsSupportedFilesystem(item->fsType)) { in FormatPartition() 267 … << "Try to format " << item->mountPoint << " with unsupported file system type: " << item->fsType; in FormatPartition() 280 int ret = DoFormat(item->deviceName, item->fsType); in FormatPartition() 302 std::string fsType(item->fsType); in SetupPartitions() local 303 if (mountPoint == "/" || mountPoint == "/tmp" || fsType == "none" || in SetupPartitions()
|
D | partitions.cpp | 380 part->fsType = ""; in NewPartition()
|
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
D | dopartitions_fuzzer.cpp | 36 part.fsType = "emmc"; in InitEmmcPartition()
|
/base/update/updater/services/include/fs_manager/ |
D | partitions.h | 89 std::string fsType; // File system type, ext4, f2fs etc. member
|
/base/update/updater/services/updater_binary/ |
D | update_partitions.cpp | 67 myPartition->fsType = (item->valuestring); in SetPartitionInfo() 71 myPartition->partName << " " << myPartition->fsType; in SetPartitionInfo()
|
/base/startup/init/test/unittest/innerkits/ |
D | innerkits_unittest.cpp | 251 fstabItem.fsType = strdup("notSupport"); 254 if (fstabItem.fsType != nullptr) { 255 free(fstabItem.fsType); 256 fstabItem.fsType = nullptr;
|
/base/update/sys_installer/services/module_update/util/include/ |
D | module_file.h | 46 char fsType[FS_TYPE_MAX_SIZE]; member
|
/base/startup/appspawn/util/src/ |
D | sandbox_utils.cpp | 183 const char *fsType, unsigned long mountFlags, in DoAppSandboxMountOnce() argument 191 ret = mount(originPath, destinationPath, fsType, mountFlags, options); in DoAppSandboxMountOnce() 366 const std::string &fsType, unsigned long mountFlags) in DoDlpAppMountStrategy() argument 383 ret = mount(srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options); in DoDlpAppMountStrategy() 400 const std::string &fsType, unsigned long mountFlags) in HandleSpecialAppMount() argument 407 if (fsType.empty()) { in HandleSpecialAppMount() 410 return DoDlpAppMountStrategy(appProperty, srcPath, sandboxPath, fsType, mountFlags); in HandleSpecialAppMount() 462 …std::string fsType = (mntPoint.find(g_fsType) != mntPoint.end()) ? mntPoint[g_fsType].get<std::str… in DoAllMntPointsMount() local 463 const char* fsTypePoint = fsType.empty() ? nullptr : fsType.c_str(); in DoAllMntPointsMount() 467 int ret = HandleSpecialAppMount(appProperty, srcPath, sandboxPath, fsType, mountFlags); in DoAllMntPointsMount()
|
/base/update/sys_installer/services/module_update/src/ |
D | module_update.cpp | 253 LOG(INFO) << "fsType=" << imageStat.fsType; in MountModulePackage() 254 ret = mount(blockDevice.c_str(), mountPoint.c_str(), imageStat.fsType, mountFlags, nullptr); in MountModulePackage()
|
/base/update/updater/test/unittest/fs_manager/ |
D | do_partition_unittest.cpp | 75 part.fsType = "emmc"; in InitEmmcPartition()
|
/base/startup/appspawn/util/include/ |
D | sandbox_utils.h | 44 const char *fsType, unsigned long mountFlags,
|
/base/update/sys_installer/services/module_update/util/src/ |
D | module_file.cpp | 110 errno_t ret = strcpy_s(imageStat.fsType, FS_TYPE_MAX_SIZE, fsTypePtr); in ParseImageStat()
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
D | account_iam_manager_test.cpp | 130 int32_t NotifyVolumeMounted(std::string volumeId, int fsType, std::string fsUuid, in NotifyVolumeMounted() argument 191 int32_t Format(std::string volumeId, std::string fsType) in Format() argument
|