Lines Matching refs:fs
236 _cleanup_free_ char *fs = NULL; in cg_trim() local
242 r = cg_get_path(controller, path, NULL, &fs); in cg_trim()
248 fs, in cg_trim()
263 rmdir(fs) < 0 && errno != ENOENT) { in cg_trim()
283 _cleanup_free_ char *fs = NULL; in cg_create() local
286 r = cg_get_path_and_check(controller, path, NULL, &fs); in cg_create()
290 r = mkdir_parents(fs, 0755); in cg_create()
294 r = RET_NERRNO(mkdir(fs, 0755)); in cg_create()
331 _cleanup_free_ char *fs = NULL; in cg_attach() local
338 r = cg_get_path_and_check(controller, path, "cgroup.procs", &fs); in cg_attach()
347 r = write_string_file(fs, c, WRITE_STRING_FILE_DISABLE_BUFFER); in cg_attach()
425 _cleanup_free_ char *fs = NULL; in cg_set_access() local
439 r = cg_get_path(controller, path, NULL, &fs); in cg_set_access()
443 r = chmod_and_chown(fs, 0755, uid, gid); in cg_set_access()
449 fs = mfree(fs); in cg_set_access()
451 r = cg_get_path(controller, path, i->name, &fs); in cg_set_access()
455 r = chmod_and_chown(fs, 0644, uid, gid); in cg_set_access()
460 log_debug_errno(r, "Failed to set access on cgroup %s, ignoring: %m", fs); in cg_set_access()
822 _cleanup_free_ char *fs = NULL; in cg_enable_everywhere() local
855 r = cg_get_path(SYSTEMD_CGROUP_CONTROLLER, p, "cgroup.subtree_control", &fs); in cg_enable_everywhere()
877 f = fopen(fs, "we"); in cg_enable_everywhere()
885 … FLAGS_SET(mask, bit) ? "enable" : "disable", n, p, fs); in cg_enable_everywhere()