Lines Matching defs:metacopy
292 * ovl_dentry_lower() could return either a data dentry or metacopy dentry
294 * lower dentry which has data (and not metacopy dentry). This helper
369 /* Return inode which contains lower data. Do not return metacopy */
380 /* Return real inode which contains data. Does not return metacopy inode */
761 #define OVL_XATTR_METACOPY_POSTFIX "metacopy"
1120 * err < 0, 0 if no metacopy xattr, metacopy data size if xattr found.
1128 /* Only regular files can have metacopy xattr */
1140 * tell the caller that this is not a metacopy inode.
1148 /* Emulate empty data for zero size metacopy xattr */
1155 pr_warn_ratelimited("metacopy file '%pd' has too small xattr\n",
1160 pr_warn_ratelimited("metacopy file '%pd' has unsupported version\n",
1165 pr_warn_ratelimited("metacopy file '%pd' has invalid xattr size\n",
1173 pr_warn_ratelimited("failed to get metacopy (%i)\n", res);
1177 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy)
1179 size_t len = metacopy->len;
1181 /* If no flags or digest fall back to empty metacopy file */
1182 if (metacopy->version == 0 && metacopy->flags == 0 && metacopy->digest_algo == 0)
1186 metacopy, len, -EOPNOTSUPP);
1292 pr_warn_ratelimited("metacopy file '%pd' has no digest specified\n",
1327 struct ovl_metacopy *metacopy)
1342 metacopy->digest, &metacopy->digest_algo, NULL);
1353 metacopy->len += digest_size;