Lines Matching refs:mountp
64 static int temp_unlink(struct fs_mount_t *mountp, const char *path) in temp_unlink() argument
66 if (mountp == NULL || path == NULL) { in temp_unlink()
70 if (strcmp(mountp->mnt_point, path) == 0) { in temp_unlink()
76 static int temp_rename(struct fs_mount_t *mountp, const char *from, in temp_rename() argument
79 if (mountp == NULL || from == NULL || to == NULL) { in temp_rename()
200 static int temp_mkdir(struct fs_mount_t *mountp, const char *path) in temp_mkdir() argument
202 if (mountp == NULL || path == NULL) { in temp_mkdir()
206 if (strcmp(mountp->mnt_point, path) == 0) { in temp_mkdir()
284 static int temp_stat(struct fs_mount_t *mountp, in temp_stat() argument
287 if (mountp == NULL || path == NULL || entry == NULL) { in temp_stat()
294 static int temp_statvfs(struct fs_mount_t *mountp, in temp_statvfs() argument
297 if (mountp == NULL || path == NULL || stat == NULL) { in temp_statvfs()
306 static int temp_mount(struct fs_mount_t *mountp) in temp_mount() argument
308 if (mountp == NULL) { in temp_mount()
312 size_t len = strlen(mountp->mnt_point); in temp_mount()
314 if (mountp->mnt_point[len - 1] != ':') { in temp_mount()
317 mp[mountp->type] = mountp; in temp_mount()
321 static int temp_unmount(struct fs_mount_t *mountp) in temp_unmount() argument
323 if (mountp == NULL) { in temp_unmount()
327 if (mp[mountp->type] == NULL) { in temp_unmount()
330 mp[mountp->type] = NULL; in temp_unmount()