On 14/04/2026 13:09, Lukáš Zaoral wrote:
Do not compare only with the latest entry for given device id but also
all previously saved entries with the same id.

* src/df.c (struct devlist): Add next_same_dev struct member.
(filter_mount_list): Iterate over next_same_dev to find duplicates.
* tests/df/skip-duplicates.sh: Add test cases.

This does look correct,
though I'm a bit worried about quadratic behaviour
in the case of many mounts sharing the same dev id.

Was there a distro bug to help base the practical considerations.

thanks,
Padraig

Reply via email to