Searched refs:newinstance (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/fs/devpts/
H A Dinode.c107 int newinstance; member in struct:pts_mount_opts
122 {Opt_newinstance, "newinstance"},
157 * 'newinstance' option which can only be set/cleared on a mount (i.e.
176 /* newinstance makes sense only on initial mount */ parse_mount_options()
178 opts->newinstance = 0; parse_mount_options()
220 /* newinstance makes sense only on initial mount */ parse_mount_options()
222 opts->newinstance = 1; parse_mount_options()
422 * If the '-o newinstance' mount option was specified, mount a new
426 * If the '-o newinstance' option was not specified, mount/remount the
430 * The 'newinstance' option is needed to support multiple namespace
433 * without the 'newinstance' mount option should bind to the initial
436 * Mounts with 'newinstance' option create a new, private namespace.
443 * 'newinstance' mount and mount_single() would pick the newinstance
457 /* Require newinstance for all user namespace mounts to ensure devpts_mount()
460 if ((current_user_ns() != &init_user_ns) && !opts.newinstance) devpts_mount()
463 if (opts.newinstance) devpts_mount()
544 (fsi->mount_opts.newinstance ? pty_reserve : 0)) { devpts_new_index()
/linux-4.4.14/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c323 if (!test_unpriv_remount("devpts", "newinstance", MS_NODEV, MS_NODEV, 0)) { main()

Completed in 194 milliseconds