Home | History | Annotate | Download | only in updater

Lines Matching refs:mount_point

39 // mount(type, location, mount_point)
50 char* mount_point;
51 if (ReadArgs(state, argv, 3, &type, &location, &mount_point) < 0) {
63 if (strlen(mount_point) == 0) {
64 ErrorAbort(state, "mount_point argument to %s() can't be empty", name);
68 mkdir(mount_point, 0755);
80 if (mtd_mount_partition(mtd, mount_point, "yaffs2", 0 /* rw */) != 0) {
86 result = mount_point;
88 if (mount(location, mount_point, type,
91 name, location, mount_point, strerror(errno));
94 result = mount_point;
101 if (result != mount_point) free(mount_point);
106 // is_mounted(mount_point)
112 char* mount_point;
113 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
116 if (strlen(mount_point) == 0) {
117 ErrorAbort(state, "mount_point argument to unmount() can't be empty");
122 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
126 result = mount_point;
130 if (result != mount_point) free(mount_point);
140 char* mount_point;
141 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
144 if (strlen(mount_point) == 0) {
145 ErrorAbort(state, "mount_point argument to unmount() can't be empty");
150 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
152 fprintf(stderr, "unmount of %s failed; no such volume\n", mount_point);
156 result = mount_point;
160 if (result != mount_point) free(mount_point);