Lines Matching defs:workdir

378 		 * Try to remove POSIX ACL xattrs from workdir.  We are good if:
414 ofs->config.workdir, name, -err);
479 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir)
481 return !is_subdir(workdir, upperdir) && !is_subdir(upperdir, workdir);
503 * Determine how we treat concurrent use of upperdir/workdir based on the
511 pr_err("%s is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection.\n",
515 pr_warn("%s is in-use as upperdir/workdir of another mount, accessing files from both mounts will result in undefined behavior.\n",
602 struct dentry *workdir = ofs->workdir;
610 temp = ovl_create_temp(ofs, workdir, OVL_CATTR(S_IFREG | 0));
616 rd.old_parent = workdir;
617 rd.new_parent = workdir;
637 workdir, name.name.len);
646 ovl_cleanup(ofs, workdir, whiteout);
650 ovl_cleanup(ofs, workdir, temp);
682 * Creates $workdir/work/incompat/volatile/dirty file if it is not already
707 struct dentry *workdir;
718 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false);
719 err = PTR_ERR(workdir);
720 if (IS_ERR_OR_NULL(workdir))
723 ofs->workdir = workdir;
725 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir");
731 * workdir and upper are on same fs, we can do iterate_dir() on
732 * workdir. This check requires successful creation of workdir in
744 tmpfile = ovl_do_tmpfile(ofs, ofs->workdir, S_IFREG | 0);
764 err = ovl_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1);
798 ovl_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE);
806 if (ovl_dentry_remote(ofs->workdir) &&
826 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb);
855 pr_err("workdir and upperdir must reside under the same mount\n");
859 pr_err("workdir and upperdir must be separate subtrees\n");
868 err = ovl_report_in_use(ofs, "workdir");
874 "workdir");
905 /* index dir will act also as workdir */
908 dput(ofs->workdir);
909 ofs->workdir = NULL;
914 ofs->workdir = indexdir;
1121 * checking if it is in-use as upperdir/workdir of "another"
1123 * the upperdir/workdir is in fact in-use by our
1124 * upperdir/workdir.
1352 err = ovl_check_layer(sb, ofs, ofs->workbasedir, "workdir",
1494 if (!ofs->config.workdir) {
1495 pr_err("missing 'workdir'\n");
1518 if (!ofs->workdir)
1544 if (!ofs->workdir)
1553 if (!ofs->workdir) {