Home
last modified time | relevance | path

Searched refs:fsType (Results 1 – 16 of 16) sorted by relevance

/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c61 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 …]
Dfstab.c103 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/
Dfs_manager.h54 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/
Dmount.cpp80 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()
Dpartitions.cpp380 part->fsType = ""; in NewPartition()
/base/update/updater/test/fuzztest/dopartitions_fuzzer/
Ddopartitions_fuzzer.cpp36 part.fsType = "emmc"; in InitEmmcPartition()
/base/update/updater/services/include/fs_manager/
Dpartitions.h89 std::string fsType; // File system type, ext4, f2fs etc. member
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp67 myPartition->fsType = (item->valuestring); in SetPartitionInfo()
71 myPartition->partName << " " << myPartition->fsType; in SetPartitionInfo()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp251 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/
Dmodule_file.h46 char fsType[FS_TYPE_MAX_SIZE]; member
/base/startup/appspawn/util/src/
Dsandbox_utils.cpp183 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/
Dmodule_update.cpp253 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/
Ddo_partition_unittest.cpp75 part.fsType = "emmc"; in InitEmmcPartition()
/base/startup/appspawn/util/include/
Dsandbox_utils.h44 const char *fsType, unsigned long mountFlags,
/base/update/sys_installer/services/module_update/util/src/
Dmodule_file.cpp110 errno_t ret = strcpy_s(imageStat.fsType, FS_TYPE_MAX_SIZE, fsTypePtr); in ParseImageStat()
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_manager_test.cpp130 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