Searched defs:dirname (Results 1 - 6 of 6) sorted by relevance

/lxc/src/lxc/bdev/
H A Dlxcbtrfs.c316 newdir = dirname(newfull);
477 tree->nodes[0].dirname = NULL;
490 char *name, int name_len, char *dirname)
503 if (dirname) {
504 n->dirname = malloc(strlen(dirname) + 1);
505 if (!n->dirname) {
509 strcpy(n->dirname, dirname);
515 char *name, int name_len, char *dirname)
489 update_tree_node(struct mytree_node *n, u64 id, u64 parent, char *name, int name_len, char *dirname) argument
514 add_btrfs_tree_node(struct my_btrfs_tree *tree, u64 id, u64 parent, char *name, int name_len, char *dirname) argument
[all...]
H A Dlxcbtrfs.h382 char *dirname; member in struct:mytree_node
/lxc/src/lxc/cgroups/
H A Dcgfs.c158 static int cgroup_rmdir(char *dirname) argument
166 dir = opendir(dirname);
168 ERROR("%s: failed to open %s", __func__, dirname);
183 rc = snprintf(pathname, MAXPATHLEN, "%s/%s", dirname, direntp->d_name);
208 if (rmdir(dirname) < 0) {
209 SYSERROR("%s: failed to delete %s", __func__, dirname);
217 SYSERROR("%s: failed to close directory %s", __func__, dirname);
1415 char *dirname = NULL; local
1485 dirname = lxc_string_join(",", (const char **)parts, false);
1486 if (!dirname)
[all...]
H A Dcgfsng.c1213 static int cgroup_rmdir(char *dirname) argument
1219 dir = opendir(dirname);
1234 pathname = must_make_path(dirname, direntp->d_name, NULL);
1251 if (rmdir(dirname) < 0) {
1253 WARN("%s: failed to delete %s: %m", __func__, dirname);
1259 WARN("%s: failed to delete %s: %m", __func__, dirname);
1674 static int recursive_count_nrtasks(char *dirname) argument
1681 dir = opendir(dirname);
1695 path = must_make_path(dirname, direntp->d_name, NULL);
1708 path = must_make_path(dirname, "cgrou
[all...]
H A Dcgmanager.c1602 static bool cgm_bind_dir(const char *root, const char *dirname) argument
1627 if (safe_mount(dirname, cgpath, "none", MS_BIND, 0, root)) {
1628 SYSERROR("Failed to bind mount %s to %s", dirname, cgpath);
/lxc/src/lxc/
H A Dutils.c90 static int _recursive_rmdir(char *dirname, dev_t pdev, argument
99 dir = opendir(dirname);
101 ERROR("%s: failed to open %s", __func__, dirname);
116 rc = snprintf(pathname, MAXPATHLEN, "%s/%s", dirname, direntp->d_name);
169 if (rmdir(dirname) < 0 && !btrfs_try_remove_subvol(dirname) && !hadexclude) {
170 ERROR("%s: failed to delete %s", __func__, dirname);
176 ERROR("%s: failed to close directory %s", __func__, dirname);

Completed in 25 milliseconds