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,
156 fsparam_enum("metacopy", Opt_metacopy, ovl_parameter_bool),
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()
881 /* metacopy -> redirect_dir dependency */ in ovl_fs_params_verify()
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()
884 pr_err("conflicting options: metacopy in ovl_fs_params_verify()
[all...]
H A Dutil.c336 * ovl_dentry_lower() could return either a data dentry or metacopy dentry
338 * lower dentry which has data (and not metacopy dentry). This helper
413 /* Return inode which contains lower data. Do not return metacopy */
424 /* Return real inode which contains data. Does not return metacopy inode */
870 #define OVL_XATTR_METACOPY_POSTFIX "metacopy"
1252 * err < 0, 0 if no metacopy xattr, metacopy data size if xattr found.
1260 /* Only regular files can have metacopy xattr */ in ovl_check_metacopy_xattr()
1272 * tell the caller that this is not a metacopy inode. in ovl_check_metacopy_xattr()
1280 /* Emulate empty data for zero size metacopy xatt in ovl_check_metacopy_xattr()
1309 ovl_set_metacopy_xattr(struct ovl_fs * ofs,struct dentry * d,struct ovl_metacopy * metacopy) ovl_set_metacopy_xattr() argument
1459 ovl_get_verity_digest(struct ovl_fs * ofs,struct path * src,struct ovl_metacopy * metacopy) ovl_get_verity_digest() argument
[all...]
H A 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()
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()
1162 * With metacopy disabled, we fsync after final metadata copyup, for in ovl_copy_up_one()
1166 * With metacopy enabled we want to avoid fsync on all meta copyup in ovl_copy_up_one()
1170 ctx.metadata_fsync = !OVL_FS(dentry->d_sb)->config.metacopy in ovl_copy_up_one()
[all...]
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.h158 /* On-disk format for "metacopy" xattr (if non-zero size) */
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 Dovl_entry.h19 bool metacopy; member
H A Dsuper.c723 if (ofs->config.metacopy) { in ovl_make_workdir()
724 ofs->config.metacopy = false; in ovl_make_workdir()
725 pr_warn("...falling back to metacopy=off.\n"); in ovl_make_workdir()
1456 if (ofs->config.metacopy && ofs->config.nfs_export) { in ovl_fill_super()
/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" fil
[all...]