[frameworks-baloo] [Bug 419302] Dolphin search/baloo shows a lot of duplicates

Martin Steigerwald bugzilla_noreply at kde.org
Sat Mar 5 22:29:10 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=419302

--- Comment #15 from Martin Steigerwald <Martin at Lichtvoll.de> ---
In one of those bug reports we already established that this is not just about
BTRFS.

This is about kernel device major:minor numbers not guaranteed to be stable in
various circumstances.

We discussed all of this before. I even asked kernel developers. See here:

https://bugs.kde.org/show_bug.cgi?id=438434#c14

In there I wrote:

Neil Brown clearly said that no userspace component can rely on device numbers
since kernel 2.4. Luckily he recommended an alternative:

"That is really hard to provide in general.  Possibly the best approach
is to use the statfs() systemcall to get the "f_fsid" field.  This is
64bits.  It is not supported uniformly well by all filesystems, but I
think it is at least not worse than using the device number.  For a lot
of older filesystems it is just an encoding of the device number.

For btrfs, xfs, ext4 it is much much better."

https://lore.kernel.org/linux-block/1769070.0rzTUBzp5V@ananda/T/#m28b8c889c9289ad1ec76cbf040938ea883e3f375

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list