[PATCH 3/6] Honour the show_cell setting
David Howells
dhowells at redhat.com
Fri Mar 6 01:28:59 PST 2026
Honour the show_cell setting when preloading cells. Only cells marked
show_cell should be preloaded; anything not marked show_cell should only be
loaded on demand.
Signed-off-by: David Howells <dhowells at redhat.com>
---
src/preload-cells.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/preload-cells.c b/src/preload-cells.c
index fa68d5a..96bd19a 100644
--- a/src/preload-cells.c
+++ b/src/preload-cells.c
@@ -119,6 +119,9 @@ int do_preload(const struct kafs_cell_db *db, bool redirect_to_stdout)
for (i = 0; i < db->nr_cells; i++) {
const struct kafs_cell *cell = db->cells[i];
+ if (!cell->show_cell)
+ continue;
+
n = snprintf(buf, sizeof(buf) - 1, "add %s", cell->name);
if (redirect_to_stdout) {
printf("WRITE '%s' TO /proc/fs/afs/cells\n", buf);
More information about the linux-afs
mailing list