/kernel/liteos_m/components/fs/vfs/ |
D | vfs_maps.c | 40 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 …]
|
D | vfs_partition.c | 77 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()
|
D | vfs_maps.h | 51 const char *fsType; member 59 int OsFsRegister(const char *fsType, const struct MountOps *fsMops, 61 struct FsMap *VfsFsMapGet(const char *fsType);
|
D | los_fs.h | 106 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,
|
D | vfs_mount.c | 172 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/ |
D | vfs_maps.c | 24 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()
|
D | vfs_maps.h | 29 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);
|
D | vfs_partition.c | 81 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()
|
D | vfs_mount.c | 118 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()
|
D | vfs_mount.h | 48 S32 OsVfsFindMountPoint(const char *fsType);
|
/kernel/liteos_a/fs/patchfs/ |
D | los_patchfs.c | 56 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()
|
D | los_partition_utils.c | 86 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()
|
D | los_partition_utils.h | 59 CHAR *fsType; member
|
/kernel/liteos_a/fs/rootfs/ |
D | los_rootfs.c | 225 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/ |
D | prt_fs.h | 70 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/ |
D | disk.c | 407 const CHAR *fsType = "FAT"; in GPTPartitionTypeRecognition() local 411 (strncmp(&buf[BS_FILSYSTYPE], fsType, strlen(fsType)) == 0)) { in GPTPartitionTypeRecognition()
|