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

/linux-4.1.27/fs/devpts/
H A Dinode.c107 int newinstance; member in struct:pts_mount_opts
122 {Opt_newinstance, "newinstance"},
155 * 'newinstance' option which can only be set/cleared on a mount (i.e.
174 /* newinstance makes sense only on initial mount */ parse_mount_options()
176 opts->newinstance = 0; parse_mount_options()
218 /* newinstance makes sense only on initial mount */ parse_mount_options()
220 opts->newinstance = 1; parse_mount_options()
420 * If the '-o newinstance' mount option was specified, mount a new
424 * If the '-o newinstance' option was not specified, mount/remount the
428 * The 'newinstance' option is needed to support multiple namespace
431 * without the 'newinstance' mount option should bind to the initial
434 * Mounts with 'newinstance' option create a new, private namespace.
441 * 'newinstance' mount and mount_single() would pick the newinstance
455 /* Require newinstance for all user namespace mounts to ensure devpts_mount()
458 if ((current_user_ns() != &init_user_ns) && !opts.newinstance) devpts_mount()
461 if (opts.newinstance) devpts_mount()
538 (fsi->mount_opts.newinstance ? pty_reserve : 0)) { devpts_new_index()
/linux-4.1.27/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c323 if (!test_unpriv_remount("devpts", "newinstance", MS_NODEV, MS_NODEV, 0)) { main()

Completed in 117 milliseconds