Home
last modified time | relevance | path

Searched refs:metacopy (Results 1 – 9 of 9) sorted by relevance

/linux/fs/overlayfs/
H A Dparams.c42 module_param_named(metacopy, ovl_metacopy_def, bool, 0644);
43 MODULE_PARM_DESC(metacopy,
681 config->metacopy = result.uint_32; in ovl_parse_param()
682 ctx->set.metacopy = true; in ovl_parse_param()
824 ofs->config.metacopy = ovl_metacopy_def; in ovl_init_fs_context()
914 if (config->metacopy && config->redirect_mode != OVL_REDIRECT_ON) { in ovl_fs_params_verify()
915 if (set.metacopy && set.redirect) { in ovl_fs_params_verify()
927 config->metacopy = false; in ovl_fs_params_verify()
957 if (config->nfs_export && config->metacopy) { in ovl_fs_params_verify()
958 if (set.nfs_export && set.metacopy) { in ovl_fs_params_verify()
[all …]
H A Dutil.c1277 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy) in ovl_set_metacopy_xattr() argument
1279 size_t len = metacopy->len; in ovl_set_metacopy_xattr()
1282 if (metacopy->version == 0 && metacopy->flags == 0 && metacopy->digest_algo == 0) in ovl_set_metacopy_xattr()
1286 metacopy, len, -EOPNOTSUPP); in ovl_set_metacopy_xattr()
1427 struct ovl_metacopy *metacopy) in ovl_get_verity_digest() argument
1442 metacopy->digest, &metacopy->digest_algo, NULL); in ovl_get_verity_digest()
1453 metacopy->len += digest_size; in ovl_get_verity_digest()
H A Dcopy_up.c590 bool metacopy; member
645 if (!S_ISREG(c->stat.mode) || c->metacopy || !c->stat.size) in ovl_copy_up_data()
694 if (c->metacopy) { in ovl_copy_up_metadata()
835 if (!c->metacopy) in ovl_copy_up_workdir()
873 if (!c->metacopy && c->stat.size) { in ovl_copy_up_tmpfile()
904 if (!c->metacopy) in ovl_copy_up_tmpfile()
1025 if (!ofs->config.metacopy) in ovl_need_meta_copy_up()
1159 ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); in ovl_copy_up_one()
H A Dparams.h14 bool metacopy; member
H A DKconfig119 possible to turn off this feature globally with the "metacopy=off"
121 "metacopy=off" mount option.
124 mounting an overlay which has metacopy only inodes on a kernel
H A Doverlayfs.h177 static inline int ovl_metadata_digest_size(const struct ovl_metacopy *metacopy) in ovl_metadata_digest_size() argument
179 if (metacopy->len < OVL_METACOPY_MIN_SIZE) in ovl_metadata_digest_size()
181 return (int)metacopy->len - OVL_METACOPY_MIN_SIZE; in ovl_metadata_digest_size()
581 struct ovl_metacopy *metacopy);
589 struct ovl_metacopy *metacopy);
677 return (!ofs->config.index && !ofs->config.metacopy && in ovl_allow_offline_changes()
H A Dovl_entry.h19 bool metacopy; member
H A Dsuper.c732 if (ofs->config.metacopy) { in ovl_make_workdir()
733 ofs->config.metacopy = false; in ovl_make_workdir()
1496 if (ofs->config.metacopy && ofs->config.nfs_export) { in ovl_fill_super_creds()
/linux/Documentation/filesystems/
H A Doverlayfs.rst382 When the "metacopy" feature is enabled, overlayfs will only copy
385 "trusted.overlayfs.metacopy" xattr which indicates that the upper file
388 the "trusted.overlayfs.metacopy" xattr is removed from the upper file.
396 parameter metacopy=on/off. Lastly, there is also a per mount option
397 metacopy=on/off to enable/disable this feature per mount.
399 Do not use metacopy=on with untrusted upper/lower directories. Otherwise
407 conflict with metacopy=on, and will result in an error.
409 [*] redirect_dir=follow only conflicts with metacopy=on if upperdir=... is
416 With "metacopy" feature enabled, an overlayfs regular file may be a composition
443 when a "metacopy" file in one of the lower layers above it, has a "redirect"
[all …]