Lines Matching refs:remount
76 // TODO make "mount --bind,ro old new" work (implicit -o remount)
78 // TODO mount -o remount
81 // TODO "mount -a -o remount,ro" should detect overmounts
85 // TODO mount -o remount a user mount
112 {"remount", MS_REMOUNT}, {"move", MS_MOVE},
293 struct mtab_list *mtl, *mtl2 = 0, *mm, *remount;
296 // remount
303 // we can modify fstab entries with -a, or mtab with remount.)
322 // For remount we need _last_ match (in case of overmounts), so traverse
323 // in reverse order. (Yes I'm using remount as a boolean for a bit here,
325 remount = (void *)(long)comma_scan(opts, "remount", 0);
326 if ((FLAG(a) && !access("/proc/mounts", R_OK)) || remount) {
328 if (remount) remount = mm;
332 // This covers -a, -o remount, one argument, all user mounts
333 if (FLAG(a) || (dev && (!dir || getuid() || remount))) {
334 if (!remount) dlist_terminate(mtl = xgetmountlist("/etc/fstab"));
336 for (mm = remount ? remount : mtl; mm; mm = (remount ? mm->prev : mm->next))
352 } else if (noauto) continue; // never present in the remount case
363 if (mtl2 && !remount)
386 remount ? "/proc/mounts" : "fstab");