Lines Matching refs:workdir

328 		 * Try to remove POSIX ACL xattrs from workdir.  We are good if:
366 ofs->config.workdir, name, -err);
429 static bool ovl_workdir_ok(struct dentry *workdir, struct dentry *upperdir)
433 if (workdir != upperdir) {
434 ok = (lock_rename(workdir, upperdir) == NULL);
435 unlock_rename(workdir, upperdir);
521 * Determine how we treat concurrent use of upperdir/workdir based on the
529 pr_err("%s is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection.\n",
533 pr_warn("%s is in-use as upperdir/workdir of another mount, accessing files from both mounts will result in undefined behavior.\n",
606 struct dentry *workdir = ofs->workdir;
607 struct inode *dir = d_inode(workdir);
616 temp = ovl_create_temp(ofs, workdir, OVL_CATTR(S_IFREG | 0));
621 dest = ovl_lookup_temp(ofs, workdir);
637 whiteout = ovl_lookup_upper(ofs, name.name.name, workdir, name.name.len);
680 * Creates $workdir/work/incompat/volatile/dirty file if it is not already
705 struct dentry *workdir;
716 workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false);
717 err = PTR_ERR(workdir);
718 if (IS_ERR_OR_NULL(workdir))
721 ofs->workdir = workdir;
723 err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir");
729 * workdir and upper are on same fs, we can do iterate_dir() on
730 * workdir. This check requires successful creation of workdir in
742 tmpfile = ovl_do_tmpfile(ofs, ofs->workdir, S_IFREG | 0);
762 err = ovl_setxattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE, "0", 1);
794 ovl_removexattr(ofs, ofs->workdir, OVL_XATTR_OPAQUE);
802 if (ovl_dentry_remote(ofs->workdir) &&
822 fh_type = ovl_can_decode_fh(ofs->workdir->d_sb);
851 pr_err("workdir and upperdir must reside under the same mount\n");
855 pr_err("workdir and upperdir must be separate subtrees\n");
864 err = ovl_report_in_use(ofs, "workdir");
870 "workdir");
896 /* index dir will act also as workdir */
899 dput(ofs->workdir);
900 ofs->workdir = NULL;
906 ofs->workdir = dget(indexdir);
1087 * checking if it is in-use as upperdir/workdir of "another"
1089 * the upperdir/workdir is in fact in-use by our
1090 * upperdir/workdir.
1277 err = ovl_check_layer(sb, ofs, ofs->workbasedir, "workdir",
1403 if (!ofs->config.workdir) {
1404 pr_err("missing 'workdir'\n");
1426 if (!ofs->workdir)