Home | History | Annotate | Download | only in updater

Lines Matching refs:mount_point

45 // mount(fs_type, partition_type, location, mount_point)
57 char* mount_point;
59 &location, &mount_point) < 0) {
76 if (strlen(mount_point) == 0) {
77 ErrorAbort(state, "mount_point argument to %s() can't be empty", name);
84 selabel_lookup(sehandle, &secontext, mount_point, 0755);
88 mkdir(mount_point, 0755);
105 if (mtd_mount_partition(mtd, mount_point, fs_type, 0 /* rw */) != 0) {
111 result = mount_point;
113 if (mount(location, mount_point, fs_type,
116 name, location, mount_point, strerror(errno));
119 result = mount_point;
127 if (result != mount_point) free(mount_point);
132 // is_mounted(mount_point)
138 char* mount_point;
139 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
142 if (strlen(mount_point) == 0) {
143 ErrorAbort(state, "mount_point argument to unmount() can't be empty");
148 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
152 result = mount_point;
156 if (result != mount_point) free(mount_point);
166 char* mount_point;
167 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
170 if (strlen(mount_point) == 0) {
171 ErrorAbort(state, "mount_point argument to unmount() can't be empty");
176 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
178 fprintf(stderr, "unmount of %s failed; no such volume\n", mount_point);
182 result = mount_point;
186 if (result != mount_point) free(mount_point);
191 // format(fs_type, partition_type, location, fs_size, mount_point)
193 // fs_type="yaffs2" partition_type="MTD" location=partition fs_size=<bytes> mount_point=<location>
194 // fs_type="ext4" partition_type="EMMC" location=device fs_size=<bytes> mount_point=<location>
207 char* mount_point;
209 if (ReadArgs(state, argv, 5, &fs_type, &partition_type, &location, &fs_size, &mount_point) < 0) {
227 if (strlen(mount_point) == 0) {
228 ErrorAbort(state, "mount_point argument to %s() can't be empty", name);
261 int status = make_ext4fs(location, atoll(fs_size), mount_point, sehandle);