Lines Matching refs:mount

23 #include <sys/mount.h>
33 #include "mount-util.h"
90 * tells us the mount id and an opaque file "handle". It is
93 * the mount id is usually good enough to tell us whether
94 * something is a mount point.
96 * If that didn't work we will try to read the mount id from
101 * consider a mount point. Hence we use this only as
122 * mount point), otherwise fallback to the
139 * If so, it must be a mount point. */
147 * must be a mount point. */
153 * assume this is the root directory, which is a mount
177 /* Hmm, so, the mount ids are the same. This leaves one
219 * /bin -> /usr/bin/ and /usr is a mount point, then the parent that we
263 "%*s " /* (1) mount id */
267 "%ms " /* (5) mount point */
268 "%*s" /* (6) mount options */
272 "%*s" /* (10) mount source */
273 "%*s" /* (11) mount options 2 */
322 * mounted, we reuse the mount and simply mark it
327 * the same mount point we only care for each individual
328 * "top-level" mount on each point, as we cannot
364 "%*s " /* (1) mount id */
368 "%ms " /* (5) mount point */
369 "%*s" /* (6) mount options (superblock) */
373 "%*s" /* (10) mount source */
374 "%*s" /* (11) mount options (bind mount) */
423 * mount, make it one. */
424 if (mount(cleaned, cleaned, NULL, MS_BIND|MS_REC, NULL) < 0)
431 if (mount(NULL, prefix, NULL, orig_flags|MS_BIND|MS_REMOUNT|(ro ? MS_RDONLY : 0), NULL) < 0)
458 if (mount(NULL, x, NULL, orig_flags|MS_BIND|MS_REMOUNT|(ro ? MS_RDONLY : 0), NULL) < 0) {
460 /* Deal with mount points that are
461 * obstructed by a later mount */
477 if (mount(path, "/", NULL, MS_MOVE, NULL) < 0)
517 /* If there are multiple mounts on a mount point, this