Lines Matching refs:mount

38 #include <sys/mount.h>
71 #include "mount-util.h"
75 #include "nspawn-mount.h"
241 " Bind mount a file or directory from the host into\n"
244 " Similar, but creates a read-only bind mount\n"
247 " Create an overlay mount from the host to \n"
250 " Similar, but creates a read-only overlay mount\n"
682 * mount point the same as the upper. */
1157 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
1158 r = log_error_errno(errno, "Failed to bind mount boot id: %m");
1159 else if (mount(NULL, to, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY|MS_NOSUID|MS_NODEV, NULL) < 0)
1216 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
1217 return log_error_errno(errno, "Both mknod and bind mount (%s) failed: %m", to);
1253 if (mount("devpts", p, "devpts", MS_NOSUID|MS_NOEXEC, options) < 0)
1254 return log_error_errno(errno, "Failed to mount /dev/pts: %m");
1290 /* We need to bind mount the right tty to /dev/console since
1292 * to bind mount things on we create a empty regular file. */
1299 if (mount(console, to, NULL, MS_BIND, NULL) < 0)
1300 return log_error_errno(errno, "Bind mount for /dev/console failed: %m");
1326 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
1327 return log_error_errno(errno, "Bind mount for /proc/kmsg failed: %m");
1434 log_error("%s: already a mount point, refusing to use for journal", p);
1442 log_error("%s: already a mount point, refusing to use for journal", q);
1512 if (mount(p, q, NULL, MS_BIND, NULL) < 0)
1513 return log_error_errno(errno, "Failed to bind mount journal from host into guest: %m");
1671 if (mount(p, q, NULL, MS_BIND, NULL) < 0)
1672 return log_error_errno(errno, "Failed to install propagation bind mount.");
1674 if (mount(NULL, q, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY, NULL) < 0)
1675 return log_error_errno(errno, "Failed to make propagation mount read-only");
2186 if (mount(what, p, fstype, MS_NODEV|(rw ? 0 : MS_RDONLY), NULL) < 0)
2187 return log_error_errno(errno, "Failed to mount %s: %m", what);
2208 return log_error_errno(r, "Failed to mount root directory: %m");
2214 return log_error_errno(r, "Failed to mount home directory: %m");
2220 return log_error_errno(r, "Failed to mount server data directory: %m");
2496 * can mount the right cgroup path writable */
2713 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) < 0)
2737 /* Turn directory into bind mount */
2738 if (mount(directory, directory, NULL, MS_BIND|MS_REC, NULL) < 0)
2739 return log_error_errno(errno, "Failed to make bind mount: %m");
3145 /* If the specified path is a mount point we
3148 * the specified is not a mount point we
3153 log_error_errno(r, "Failed to determine whether directory %s is mount point: %m", arg_directory);