Searched refs:metacopy (Results 1 – 10 of 10) sorted by relevance
/linux/fs/overlayfs/ |
H A D | params.c | 42 module_param_named(metacopy, ovl_metacopy_def, bool, 0644); 43 MODULE_PARM_DESC(metacopy, 653 config->metacopy = result.uint_32; in ovl_parse_param() 654 ctx->set.metacopy = true; in ovl_parse_param() 793 ofs->config.metacopy = ovl_metacopy_def; in ovl_init_fs_context() 882 if (config->metacopy && config->redirect_mode != OVL_REDIRECT_ON) { in ovl_fs_params_verify() 883 if (set.metacopy && set.redirect) { in ovl_fs_params_verify() 895 config->metacopy = false; in ovl_fs_params_verify() 925 if (config->nfs_export && config->metacopy) { in ovl_fs_params_verify() 926 if (set.nfs_export && set.metacopy) { in ovl_fs_params_verify() [all …]
|
H A D | namei.c | 29 int metacopy; member 285 if (last_element && d->metacopy && !d_is_reg(this)) { in ovl_lookup_single() 299 d->metacopy = err; in ovl_lookup_single() 300 d->stop = !d->metacopy; in ovl_lookup_single() 301 if (!d->metacopy || d->last) in ovl_lookup_single() 1068 if (d->metacopy && !ofs->config.metacopy) { in ovl_check_follow_redirect() 1110 .metacopy = 0, in ovl_lookup() 1144 if (d.metacopy) in ovl_lookup() 1146 metacopy_size = d.metacopy; in ovl_lookup() 1222 if (!upperdentry && !d.is_dir && !ctr && d.metacopy) in ovl_lookup() [all …]
|
H A D | util.c | 1309 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy) in ovl_set_metacopy_xattr() argument 1311 size_t len = metacopy->len; in ovl_set_metacopy_xattr() 1314 if (metacopy->version == 0 && metacopy->flags == 0 && metacopy->digest_algo == 0) in ovl_set_metacopy_xattr() 1318 metacopy, len, -EOPNOTSUPP); in ovl_set_metacopy_xattr() 1459 struct ovl_metacopy *metacopy) in ovl_get_verity_digest() argument 1474 metacopy->digest, &metacopy->digest_algo, NULL); in ovl_get_verity_digest() 1485 metacopy->len += digest_size; in ovl_get_verity_digest()
|
H A D | copy_up.c | 592 bool metacopy; member 648 if (!S_ISREG(c->stat.mode) || c->metacopy || !c->stat.size) in ovl_copy_up_data() 697 if (c->metacopy) { in ovl_copy_up_metadata() 844 if (!c->metacopy) in ovl_copy_up_workdir() 884 if (!c->metacopy && c->stat.size) { in ovl_copy_up_tmpfile() 917 if (!c->metacopy) in ovl_copy_up_tmpfile() 1038 if (!ofs->config.metacopy) in ovl_need_meta_copy_up() 1170 ctx.metadata_fsync = !OVL_FS(dentry->d_sb)->config.metacopy && in ovl_copy_up_one() 1172 ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); in ovl_copy_up_one()
|
H A D | params.h | 14 bool metacopy; member
|
H A D | Kconfig | 119 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 D | overlayfs.h | 171 static inline int ovl_metadata_digest_size(const struct ovl_metacopy *metacopy) in ovl_metadata_digest_size() argument 173 if (metacopy->len < OVL_METACOPY_MIN_SIZE) in ovl_metadata_digest_size() 175 return (int)metacopy->len - OVL_METACOPY_MIN_SIZE; in ovl_metadata_digest_size() 563 struct ovl_metacopy *metacopy); 571 struct ovl_metacopy *metacopy); 644 return (!ofs->config.index && !ofs->config.metacopy && in ovl_allow_offline_changes()
|
H A D | ovl_entry.h | 19 bool metacopy; member
|
H A D | super.c | 723 if (ofs->config.metacopy) { in ovl_make_workdir() 724 ofs->config.metacopy = false; in ovl_make_workdir() 1456 if (ofs->config.metacopy && ofs->config.nfs_export) { in ovl_fill_super()
|
/linux/Documentation/filesystems/ |
H A D | overlayfs.rst | 382 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 …]
|