Home
last modified time | relevance | path

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

/linux-6.12.1/fs/overlayfs/
Dparams.c42 module_param_named(metacopy, ovl_metacopy_def, bool, 0644);
43 MODULE_PARM_DESC(metacopy,
587 config->metacopy = result.uint_32; in ovl_parse_param()
588 ctx->set.metacopy = true; in ovl_parse_param()
704 ofs->config.metacopy = ovl_metacopy_def; in ovl_init_fs_context()
784 if (config->verity_mode && !config->metacopy) { in ovl_fs_params_verify()
786 if (set.metacopy) { in ovl_fs_params_verify()
792 config->metacopy = true; in ovl_fs_params_verify()
803 if (config->metacopy && config->redirect_mode != OVL_REDIRECT_ON) { in ovl_fs_params_verify()
804 if (set.metacopy && set.redirect) { in ovl_fs_params_verify()
[all …]
Dnamei.c29 int metacopy; member
265 if (last_element && d->metacopy && !d_is_reg(this)) { in ovl_lookup_single()
279 d->metacopy = err; in ovl_lookup_single()
280 d->stop = !d->metacopy; in ovl_lookup_single()
281 if (!d->metacopy || d->last) in ovl_lookup_single()
1058 .metacopy = 0, in ovl_lookup()
1092 if (d.metacopy) in ovl_lookup()
1094 metacopy_size = d.metacopy; in ovl_lookup()
1131 if ((uppermetacopy || d.metacopy) && !ofs->config.metacopy) { in ovl_lookup()
1172 if (!upperdentry && !d.is_dir && !ctr && d.metacopy) in ovl_lookup()
[all …]
Dutil.c1294 int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy) in ovl_set_metacopy_xattr() argument
1296 size_t len = metacopy->len; in ovl_set_metacopy_xattr()
1299 if (metacopy->version == 0 && metacopy->flags == 0 && metacopy->digest_algo == 0) in ovl_set_metacopy_xattr()
1303 metacopy, len, -EOPNOTSUPP); in ovl_set_metacopy_xattr()
1444 struct ovl_metacopy *metacopy) in ovl_get_verity_digest() argument
1459 metacopy->digest, &metacopy->digest_algo, NULL); in ovl_get_verity_digest()
1470 metacopy->len += digest_size; in ovl_get_verity_digest()
Dcopy_up.c592 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()
845 if (!c->metacopy) in ovl_copy_up_workdir()
885 if (!c->metacopy && c->stat.size) { in ovl_copy_up_tmpfile()
918 if (!c->metacopy) in ovl_copy_up_tmpfile()
1039 if (!ofs->config.metacopy) in ovl_need_meta_copy_up()
1171 ctx.metadata_fsync = !OVL_FS(dentry->d_sb)->config.metacopy && in ovl_copy_up_one()
1173 ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); in ovl_copy_up_one()
Dparams.h14 bool metacopy; member
Doverlayfs.h171 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()
546 struct ovl_metacopy *metacopy);
556 struct ovl_metacopy *metacopy);
629 return (!ofs->config.index && !ofs->config.metacopy && in ovl_allow_offline_changes()
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
Dovl_entry.h19 bool metacopy; member
Dsuper.c704 if (ofs->config.metacopy) { in ovl_make_workdir()
705 ofs->config.metacopy = false; in ovl_make_workdir()
1426 if (ofs->config.metacopy && ofs->config.nfs_export) { in ovl_fill_super()
/linux-6.12.1/Documentation/filesystems/
Doverlayfs.rst368 When the "metacopy" feature is enabled, overlayfs will only copy
371 "trusted.overlayfs.metacopy" xattr which indicates that the upper file
374 the "trusted.overlayfs.metacopy" xattr is removed from the upper file.
382 parameter metacopy=on/off. Lastly, there is also a per mount option
383 metacopy=on/off to enable/disable this feature per mount.
385 Do not use metacopy=on with untrusted upper/lower directories. Otherwise
393 conflict with metacopy=on, and will result in an error.
395 [*] redirect_dir=follow only conflicts with metacopy=on if upperdir=... is
402 With "metacopy" feature enabled, an overlayfs regular file may be a composition
429 when a "metacopy" file in one of the lower layers above it, has a "redirect"
[all …]