• Home
  • Raw
  • Download

Lines Matching full:target

133     const char *target = NULL;  in VfsMpFind()  local
144 target = iPath; in VfsMpFind()
151 (*target != '\0') && (*target != '/')) { in VfsMpFind()
152 if (*mPath != *target) { in VfsMpFind()
156 ++target; in VfsMpFind()
159 ((*target == '\0') || (*target == '/'))) { in VfsMpFind()
171 STATIC struct MountPoint *VfsMountPointInit(const char *source, const char *target, in VfsMountPointInit() argument
180 /* find mp by target, to see if it was mounted */ in VfsMountPointInit()
181 mp = VfsMpFind(target, &pathInMp); in VfsMountPointInit()
198 tsize = strlen(target) + 1; in VfsMountPointInit()
218 if (strcpy_s((char *)mp + sizeof(struct MountPoint) + ssize, tsize, target) != EOK) { in VfsMountPointInit()
229 STATIC int VfsRemount(const char *source, const char *target, in VfsRemount() argument
237 mp = VfsMpFind(target, NULL); in VfsRemount()
250 STATIC int VfsMountPathCheck(const char *target) in VfsMountPathCheck() argument
252 /* target must begin with '/', for example /system, /data, etc. */ in VfsMountPathCheck()
253 if ((target == NULL) || (target[0] != '/')) { in VfsMountPathCheck()
258 if (strlen(target) >= PATH_MAX) { in VfsMountPathCheck()
266 int mount(const char *source, const char *target, in mount() argument
273 if (VfsMountPathCheck(target) != LOS_OK) { in mount()
280 ret = VfsRemount(source, target, fsType, mountflags, data); in mount()
285 mp = VfsMountPointInit(source, target, fsType, mountflags); in mount()
294 PRINT_ERR("mount failed, target %s.\n", target); in mount()
309 int umount(const char *target) in umount() argument
315 if (VfsMountPathCheck(target) != LOS_OK) { in umount()
319 mp = VfsMpFind(target, NULL); in umount()
344 PRINT_ERR("umount2 failed, target %s.\n", target); in umount()
364 int umount2(const char *target, int flag) in umount2() argument
370 if (VfsMountPathCheck(target) != LOS_OK) { in umount2()
374 mp = VfsMpFind(target, NULL); in umount2()
401 PRINT_ERR("umount2 failed, target %s.\n", target); in umount2()