inode count for `uv cache size`
Author: lgarrisonCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancement
Summary
For filesystems with inode quotas, it would be helpful to know how many inodes the uv cache is using, e.g.
$ uv cache size --inodes
12345This is particularly relevant to HPC clusters, which often have strict inode limits.
To implement this, I'm guessing the place to start would be an upstream PR into diskus to expose inode counts. I'd be happy to work on this, but first I wanted to see if uv would be interested in this functionality.
If the idea is acceptable, there are lots of little UI decisions to be made, for example:
- Should the default (human readable) display use a suffix like 12.3K to match the byte counts?
- Should the parameter be named
--inodesor--countor ...? - Should the default display show size *and* count?
Example
No response
Source: astral-sh/uv