Lines Matching refs:n_mounts

1692 static void drop_unused_mounts(const char *root_directory, MountEntry *mounts, size_t *n_mounts) {  in drop_unused_mounts()  argument
1694 assert(n_mounts); in drop_unused_mounts()
1695 assert(mounts || *n_mounts == 0); in drop_unused_mounts()
1697 typesafe_qsort(mounts, *n_mounts, mount_path_compare); in drop_unused_mounts()
1699 drop_duplicates(mounts, n_mounts); in drop_unused_mounts()
1700 drop_outside_root(root_directory, mounts, n_mounts); in drop_unused_mounts()
1701 drop_inaccessible(mounts, n_mounts); in drop_unused_mounts()
1702 drop_nop(mounts, n_mounts); in drop_unused_mounts()
1732 size_t *n_mounts, in apply_mounts() argument
1740 if (n_mounts == 0) /* Shortcut: nothing to do */ in apply_mounts()
1745 assert(n_mounts); in apply_mounts()
1763 for (MountEntry *m = mounts; m < mounts + *n_mounts; ++m) { in apply_mounts()
1797 drop_unused_mounts(root, mounts, n_mounts); in apply_mounts()
1809 deny_list = new(char*, (*n_mounts)+1); in apply_mounts()
1812 for (size_t j = 0; j < *n_mounts; j++) in apply_mounts()
1814 deny_list[*n_mounts] = NULL; in apply_mounts()
1817 for (MountEntry *m = mounts; m < mounts + *n_mounts; ++m) { in apply_mounts()
1827 for (size_t j = 0; j < *n_mounts; j++) in apply_mounts()
1830 deny_list[*n_mounts] = NULL; in apply_mounts()
1832 for (MountEntry *m = mounts; m < mounts + *n_mounts; ++m) { in apply_mounts()
1843 for (MountEntry *m = mounts; m < mounts + *n_mounts; ++m) { in apply_mounts()
2015 size_t n_mounts; in setup_namespace() local
2119 n_mounts = namespace_calculate_mounts( in setup_namespace()
2139 if (n_mounts > 0) { in setup_namespace()
2140 m = mounts = new0(MountEntry, n_mounts); in setup_namespace()
2365 assert(mounts + n_mounts == m); in setup_namespace()
2368 r = prefix_where_needed(mounts, n_mounts, root); in setup_namespace()
2372 drop_unused_mounts(root, mounts, &n_mounts); in setup_namespace()
2457 r = apply_mounts(root, ns_info, mounts, &n_mounts, exec_dir_symlinks, error_path); in setup_namespace()
2500 if (n_mounts > 0) in setup_namespace()
2501 for (m = mounts; m < mounts + n_mounts; m++) in setup_namespace()