Home
last modified time | relevance | path

Searched refs:workdir (Results 1 – 10 of 10) sorted by relevance

/linux/fs/overlayfs/
H A Dsuper.c393 ofs->config.workdir, name, -err); in ovl_workdir_create()
458 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir) in ovl_workdir_ok() argument
460 return !is_subdir(workdir, upperdir) && !is_subdir(upperdir, workdir); in ovl_workdir_ok()
567 struct dentry *workdir = ofs->workdir; in ovl_check_rename_whiteout() local
575 temp = ovl_create_temp(ofs, workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
581 rd.old_parent = workdir; in ovl_check_rename_whiteout()
582 rd.new_parent = workdir; in ovl_check_rename_whiteout()
602 workdir, name.name.len); in ovl_check_rename_whiteout()
611 ovl_cleanup(ofs, workdir, whiteout); in ovl_check_rename_whiteout()
615 ovl_cleanup(ofs, workdir, temp); in ovl_check_rename_whiteout()
[all …]
H A Dparams.c374 swap(config->workdir, *pname); in ovl_add_layer()
848 dput(ofs->workdir); in ovl_free_fs()
870 kfree(ofs->config.workdir); in ovl_free_fs()
883 if (config->workdir) { in ovl_fs_params_verify()
885 config->workdir); in ovl_fs_params_verify()
886 kfree(config->workdir); in ovl_fs_params_verify()
887 config->workdir = NULL; in ovl_fs_params_verify()
1078 seq_show_option(m, "workdir", ofs->config.workdir); in ovl_show_options()
H A Dovl_entry.h10 char *workdir; member
69 struct dentry *workdir; member
H A Dcopy_up.c586 struct dentry *workdir; member
778 temp = ovl_create_temp(ofs, c->workdir, &cattr); in ovl_copy_up_workdir()
808 rd.old_parent = c->workdir; in ovl_copy_up_workdir()
846 ovl_cleanup(ofs, c->workdir, temp); in ovl_copy_up_workdir()
865 tmpfile = ovl_do_tmpfile(ofs, c->workdir, c->stat.mode); in ovl_copy_up_tmpfile()
941 c->workdir = ovl_indexdir(c->dentry->d_sb); in ovl_do_copy_up()
1132 .workdir = ovl_workdir(dentry), in ovl_copy_up_one()
1135 if (WARN_ON(!ctx.workdir)) in ovl_copy_up_one()
H A Doverlayfs.h905 int ovl_cleanup(struct ovl_fs *ofs, struct dentry *workdir, struct dentry *dentry);
908 struct dentry *ovl_create_temp(struct ovl_fs *ofs, struct dentry *workdir,
944 return (!ovl_upper_mnt(ofs) || !ofs->workdir); in ovl_force_readonly()
H A Dutil.c62 return ofs->workdir; in ovl_workdir()
98 return ofs->config.index ? ofs->workdir : NULL; in ovl_indexdir()
H A Dreaddir.c1259 struct dentry *indexdir = ofs->workdir; in ovl_indexdir_cleanup()
/linux/tools/testing/selftests/hid/
H A Dhid_common.h319 static bool match_sysfs_device(struct uhid_device *hid, const char *workdir, struct dirent *dir) in match_sysfs_device() argument
334 sprintf(uevent, "%s/%s/uevent", workdir, dir->d_name); in match_sysfs_device()
353 const char *workdir = "/sys/devices/virtual/misc/uhid"; in get_hid_id() local
363 d = opendir(workdir); in get_hid_id()
366 if (!match_sysfs_device(hid, workdir, dir)) in get_hid_id()
385 const char *workdir = "/sys/devices/virtual/misc/uhid"; in get_hidraw() local
394 d = opendir(workdir); in get_hidraw()
400 if (!match_sysfs_device(hid, workdir, dir)) in get_hidraw()
403 sprintf(sysfs, "%s/%s/hidraw", workdir, dir->d_name); in get_hidraw()
H A Dvmtest.sh
/linux/Documentation/filesystems/
H A Doverlayfs.rst124 workdir=/work /merged
126 The "workdir" needs to be an empty directory on the same filesystem
358 As the example shows, "upperdir=" and "workdir=" may be omitted. In
469 "datadir+", "lowerdir+", "upperdir", and "workdir+" mount options with the
477 fsconfig(fs_fd, FSCONFIG_SET_FD, "workdir", NULL, fd_work);
536 Using an upper layer path and/or a workdir path that are already used by
540 upper layer and/or workdir path, the behavior of the overlay is undefined,
856 "$workdir/work/incompat/volatile" is created. During next mount, overlay