#22053·uv

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.

bash
$ uv cache size --inodes
12345

This 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 --inodes or --count or ...?
  • Should the default display show size *and* count?

Example

No response