Home | History | Annotate | Download | only in updater

Lines Matching full:mount_point

110 // mount(fs_type, partition_type, location, mount_point)
122 char* mount_point;
128 &location, &mount_point, &mount_options) < 0) {
134 &location, &mount_point) < 0) {
152 if (strlen(mount_point) == 0) {
153 ErrorAbort(state, kArgsParsingFailure, "mount_point argument to %s() can't be empty",
162 selabel_lookup(sehandle, &secontext, mount_point, 0755);
166 mkdir(mount_point, 0755);
184 if (mtd_mount_partition(mtd, mount_point, fs_type, 0 /* rw */) != 0) {
190 result = mount_point;
192 if (mount(location, mount_point, fs_type,
196 name, location, mount_point, strerror(errno));
199 result = mount_point;
207 if (result != mount_point) free(mount_point);
213 // is_mounted(mount_point)
219 char* mount_point;
220 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
223 if (strlen(mount_point) == 0) {
224 ErrorAbort(state, kArgsParsingFailure, "mount_point argument to unmount() can't be empty");
230 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
234 result = mount_point;
239 if (result != mount_point) free(mount_point);
249 char* mount_point;
250 if (ReadArgs(state, argv, 1, &mount_point) < 0) {
253 if (strlen(mount_point) == 0) {
254 ErrorAbort(state, kArgsParsingFailure, "mount_point argument to unmount() can't be empty");
260 const MountedVolume* vol = find_mounted_volume_by_mount_point(mount_point);
262 uiPrintf(state, "unmount of %s failed; no such volume\n", mount_point);
268 mount_point, ret, strerror(errno));
270 result = mount_point;
275 if (result != mount_point) free(mount_point);
294 // format(fs_type, partition_type, location, fs_size, mount_point)
296 // fs_type="yaffs2" partition_type="MTD" location=partition fs_size=<bytes> mount_point=<location>
297 // fs_type="ext4" partition_type="EMMC" location=device fs_size=<bytes> mount_point=<location>
298 // fs_type="f2fs" partition_type="EMMC" location=device fs_size=<bytes> mount_point=<location>
311 char* mount_point;
313 if (ReadArgs(state, argv, 5, &fs_type, &partition_type, &location, &fs_size, &mount_point) < 0) {
331 if (strlen(mount_point) == 0) {
332 ErrorAbort(state, kArgsParsingFailure, "mount_point argument to %s() can't be empty",
366 int status = make_ext4fs(location, atoll(fs_size), mount_point, sehandle);