#1134432 PRUNEFS shall include `9p'

Package:
plocate
Source:
plocate
Description:
much faster locate
Submitter:
Lv Weifan
Date:
2026-04-20 15:41:01 UTC
Severity:
normal
#1134432#5
Date:
2026-04-20 03:27:05 UTC
From:
To:
When I use plocate in WSL2 (Windows Subsystem for Linux, version 2), I noticed that windows filesystems (such as `/mnt/c`) were indexed in the default configuration.

WSL2 use `9p' to "mount" windows file systems, which can be treated as a network filesystem - in terms of both architecture and performance. Indexing files in such filesystem triggers excessive filesystem I/O overhead.

I would like to suggest adding `9p' to the default PRUNEFS list in `/etc/updatedb.conf'.

#1134432#10
Date:
2026-04-20 06:19:21 UTC
From:
To:
Hi,

This has come up before, and the problem is that it goes both ways;
you get less updatedb overhead, but you also simply cannot find your files.
Some people would think this is a good tradeoff, I'm not so sure.
It depends on how many directories you have and if you actually care about
finding your /mnt/c files or not. Given that plocate isn't installed
by default and you can easily add this yourself to updatedb.conf,
this is probably going to be a wontfix.

/* Steinar */

#1134432#15
Date:
2026-04-20 15:39:50 UTC
From:
To:
I see.

I am primarily looking at this from a standpoint of consistency: `9p' is
basically a network protocol, so I believe it makes sense to prune it,
just like `nfs', `smbfs' or `sshfs'.

This also aligns plocate behavior with Windows tools. Windows treats WSL2
as a network resource and does not index its internal data by default;
pruning 9p keeps plocate consistent with this logic.

As for WSL1, Windows tools typically treat it as a local resource for
indexing. While Windows drives are mounted via `drvfs' in WSL1, pruning `9p'
won't impact indexing for those volumes from WSL1.