Home
last modified time | relevance | path

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

/kernel/liteos_m/components/fs/vfs/
Dvfs_maps.c40 struct FsMap *VfsFsMapGet(const char *fsType) in VfsFsMapGet() argument
46 if ((curr->fsType != NULL) && (fsType != NULL) && in VfsFsMapGet()
47 (strcmp(curr->fsType, fsType) == 0)) { in VfsFsMapGet()
58 int OsFsRegister(const char *fsType, const struct MountOps *fsMops, in OsFsRegister() argument
69 PRINT_ERR("Fs register malloc failed, fsType %s.\n", fsType); in OsFsRegister()
75 len = strlen(fsType) + 1; in OsFsRegister()
76 newfs->fsType = LOSCFG_FS_MALLOC_HOOK(len); in OsFsRegister()
77 if (newfs->fsType == NULL) { in OsFsRegister()
82 (void)strcpy_s((char *)newfs->fsType, len, fsType); in OsFsRegister()
97 int LOS_FsRegister(const char *fsType, const struct MountOps *fsMops, in LOS_FsRegister() argument
[all …]
Dvfs_partition.c77 static int AddDevice(const char *dev, const char *fsType, int *lengthArray, int *addrArray, in AddDevice() argument
101 len = strlen(fsType) + 1; in AddDevice()
108 (void)strcpy_s((char *)prev->dFsType, len, fsType); in AddDevice()
143 int LOS_DiskPartition(const char *dev, const char *fsType, int *lengthArray, int *addrArray, in LOS_DiskPartition() argument
147 struct FsMap *fMap = VfsFsMapGet(fsType); in LOS_DiskPartition()
154 ret = AddDevice(dev, fsType, lengthArray, addrArray, partNum); in LOS_DiskPartition()
158 int LOS_PartitionFormat(const char *partName, char *fsType, void *data) in LOS_PartitionFormat() argument
172 struct FsMap *fMap = VfsFsMapGet(fsType); in LOS_PartitionFormat()
Dvfs_maps.h51 const char *fsType; member
59 int OsFsRegister(const char *fsType, const struct MountOps *fsMops,
61 struct FsMap *VfsFsMapGet(const char *fsType);
Dlos_fs.h106 int LOS_DiskPartition(const char *dev, const char *fsType, int *lengthArray, int *addrArray,
119 int LOS_PartitionFormat(const char *partName, char *fsType, void *data);
139 int LOS_FsRegister(const char *fsType, const struct MountOps *fsMops,
Dvfs_mount.c172 const char *fsType, unsigned long mountflags) in VfsMountPointInit() argument
188 mFs = VfsFsMapGet(fsType); in VfsMountPointInit()
230 const char *fsType, unsigned long mountflags, in VfsRemount() argument
234 (VOID)fsType; in VfsRemount()
267 const char *fsType, unsigned long mountflags, in mount() argument
280 ret = VfsRemount(source, target, fsType, mountflags, data); in mount()
285 mp = VfsMountPointInit(source, target, fsType, mountflags); in mount()
/kernel/uniproton/src/fs/vfs/
Dvfs_maps.c24 struct TagFsMap *OsVfsGetFsMap(const char *fsType) in OsVfsGetFsMap() argument
28 if ((curr->fsType != NULL) && (fsType != NULL) && in OsVfsGetFsMap()
29 (strcmp(curr->fsType, fsType) == 0)) { in OsVfsGetFsMap()
37 S32 OsVfsFsMgtDisk(const char *dev, const char *fsType, S32 *lengthArray, S32 partNum) in OsVfsFsMgtDisk() argument
41 struct TagFsMap *fMap = OsVfsGetFsMap(fsType); in OsVfsFsMgtDisk()
49 S32 OsVfsFsMgtFormat(const char *partName, char *fsType, void *data) in OsVfsFsMgtFormat() argument
53 struct TagFsMap *fMap = OsVfsGetFsMap(fsType); in OsVfsFsMgtFormat()
61 S32 OsFsRegister(const char *fsType, struct TagMountOps *fsMops, in OsFsRegister() argument
77 newfs->fsType = strdup(fsType); in OsFsRegister()
78 if (newfs->fsType == NULL) { in OsFsRegister()
Dvfs_maps.h29 const char *fsType; member
37 S32 OsFsRegister(const char *fsType, struct TagMountOps *fsMops,
39 struct TagFsMap *OsVfsGetFsMap(const char *fsType);
40 S32 OsVfsFsMgtDisk(const char *dev, const char *fsType, S32 *lengthArray, S32 partNum);
41 S32 OsVfsFsMgtFormat(const char *partName, char *fsType, void *data);
Dvfs_partition.c81 static S32 OsAddDevice(const char *dev, const char *fsType, S32 *lengthArray, in OsAddDevice() argument
103 prev->dFsType = strdup(fsType); in OsAddDevice()
129 S32 PRT_DiskPartition(const char *dev, const char *fsType, S32 *lengthArray, in PRT_DiskPartition() argument
132 S32 ret = OsVfsFsMgtDisk(dev, fsType, lengthArray, partNum); in PRT_DiskPartition()
137 return OsAddDevice(dev, fsType, lengthArray, addrArray, partNum); in PRT_DiskPartition()
140 S32 PRT_PartitionFormat(const char *partName, char *fsType, void *data) in PRT_PartitionFormat() argument
142 S32 ret = OsVfsFindMountPoint(fsType); in PRT_PartitionFormat()
148 return OsVfsFsMgtFormat(partName, fsType, data); in PRT_PartitionFormat()
Dvfs_mount.c118 S32 OsVfsFindMountPoint(const char *fsType) in OsVfsFindMountPoint() argument
122 if ((iter->mFs != NULL) && (iter->mFs->fsType != NULL) && in OsVfsFindMountPoint()
123 strcmp(iter->mFs->fsType, fsType) == 0) { in OsVfsFindMountPoint()
Dvfs_mount.h48 S32 OsVfsFindMountPoint(const char *fsType);
/kernel/liteos_a/fs/patchfs/
Dlos_patchfs.c56 partInfo.fsType = strdup(FS_TYPE); in OsMountPatchFs()
57 if (partInfo.fsType == NULL) { in OsMountPatchFs()
81 ret = mount(devName, PATCHFS_MOUNT_POINT, partInfo.fsType, MS_RDONLY, NULL); in OsMountPatchFs()
101 free(partInfo.fsType); in OsMountPatchFs()
102 partInfo.fsType = NULL; in OsMountPatchFs()
Dlos_partition_utils.c86 if ((partInfo->fsType == NULL) && (strncmp(p, fsTypeArgName, strlen(fsTypeArgName)) == 0)) { in MatchPartInfo()
87 partInfo->fsType = strdup(p + strlen(fsTypeArgName)); in MatchPartInfo()
88 if (partInfo->fsType == NULL) { in MatchPartInfo()
178 if ((partInfo->fsType != NULL) && (partInfo->storageType != NULL)) { in GetPartitionInfo()
190 if (partInfo->fsType != NULL) { in GetPartitionInfo()
191 free(partInfo->fsType); in GetPartitionInfo()
192 partInfo->fsType = NULL; in GetPartitionInfo()
Dlos_partition_utils.h59 CHAR *fsType; member
/kernel/liteos_a/fs/rootfs/
Dlos_rootfs.c225 STATIC INT32 MountPartitions(CHAR *fsType, UINT32 mountFlags) in MountPartitions() argument
231 ret = mount(ROOT_DEV_NAME, ROOT_DIR_NAME, fsType, mountFlags, NULL); in MountPartitions()
247 ret = mount(PATCH_DEV_NAME, PATCH_DIR_NAME, fsType, 0, DEFAULT_MOUNT_DATA); in MountPartitions()
255 ret = mount(PATCH_DEV_NAME, PATCH_DIR_NAME, fsType, 0, DEFAULT_MOUNT_DATA); in MountPartitions()
274 ret = mount(USER_DEV_NAME, STORAGE_DIR_NAME, fsType, 0, DEFAULT_MOUNT_DATA); in MountPartitions()
289 ret = mount(USERDATA_DEV_NAME, USERDATA_DIR_NAME, fsType, 0, DEFAULT_MOUNT_DATA); in MountPartitions()
297 ret = mount(USERDATA_DEV_NAME, USERDATA_DIR_NAME, fsType, 0, DEFAULT_MOUNT_DATA); in MountPartitions()
/kernel/uniproton/src/include/uapi/
Dprt_fs.h70 S32 PRT_DiskPartition(const char *dev, const char *fsType, S32 *lengthArray, S32 *addrArray,
83 S32 PRT_PartitionFormat(const char *partName, char *fsType, void *data);
/kernel/liteos_a/drivers/block/disk/src/
Ddisk.c407 const CHAR *fsType = "FAT"; in GPTPartitionTypeRecognition() local
411 (strncmp(&buf[BS_FILSYSTYPE], fsType, strlen(fsType)) == 0)) { in GPTPartitionTypeRecognition()