Lines Matching refs:index

42 module_param_named(index, ovl_index_def, bool, 0644);
43 MODULE_PARM_DESC(index,
44 "Default to on or off for the inodes index feature");
374 if (ofs->config.index != ovl_index_def)
375 seq_printf(m, ",index=%s", ofs->config.index ? "on" : "off");
447 {OPT_INDEX_ON, "index=on"},
448 {OPT_INDEX_OFF, "index=off"},
560 config->index = true;
565 config->index = false;
612 /* Workdir/index are useless in non-upper mount */
620 if (config->index && index_opt) {
621 pr_info("option \"index=on\" is useless in a non-upper mount, ignore\n");
624 config->index = false;
664 /* Resolve nfs_export -> index dependency */
665 if (config->nfs_export && !config->index) {
670 pr_err("conflicting options: nfs_export=on,index=off\n");
674 * There was an explicit index=off that resulted
677 pr_info("disabling nfs_export due to index=off\n");
680 /* Automatically enable index otherwise. */
681 config->index = true;
712 #define OVL_INDEXDIR_NAME "index"
898 * The inodes index feature and NFS export need to encode and decode
903 (ofs->config.index && ofs->config.upperdir)) && !fh_type) {
904 ofs->config.index = false;
906 pr_warn("fs on '%s' does not support file handles, falling back to index=off,nfs_export=off.\n",
1103 * index feature. This is papering over mount leaks of container runtimes,
1109 if (ofs->config.index) {
1110 pr_err("%s is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection.\n",
1346 ofs->config.index = false;
1348 pr_warn("upper fs does not support xattr, falling back to index=off and metacopy=off.\n");
1380 if (ofs->config.index && !fh_type) {
1381 ofs->config.index = false;
1382 pr_warn("upper fs does not support file handles, falling back to index=off.\n");
1389 /* NFS export of r/w mount depends on index */
1390 if (ofs->config.nfs_export && !ofs->config.index) {
1391 pr_warn("NFS export requires \"index=on\", falling back to nfs_export=off.\n");
1461 /* index dir will act also as workdir */
1479 * Verify upper root is exclusively associated with index dir.
1483 * "trusted.overlay.upper" to indicate that index may have
1491 pr_err("failed to verify index dir 'origin' xattr\n");
1496 pr_err("failed to verify index dir 'upper' xattr\n");
1498 /* Cleanup bad/stale/orphan index entries */
1503 pr_warn("try deleting index dir or mounting with '-o index=off' to disable inodes index.\n");
1518 * We allow using single lower with null uuid for index and nfs_export
1525 if (!ofs->config.index && !ofs->config.metacopy && !ofs->config.xino &&
1562 if (ofs->config.index || ofs->config.nfs_export) {
1563 ofs->config.index = false;
1565 pr_warn("%s uuid detected in lower fs '%pd2', falling back to index=off,nfs_export=off.\n",
1816 * this instance and covers overlapping work and index dirs,
1817 * unless work or index dir have been moved since created inside
1902 ofs->config.index = ovl_index_def;
1993 if (!ovl_force_readonly(ofs) && ofs->config.index) {
1998 /* Force r/o mount with no index dir */
2007 /* Show index=off in /proc/mounts for forced r/o mount */
2009 ofs->config.index = false;
2011 pr_warn("NFS export requires an index dir, falling back to nfs_export=off.\n");