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

Harald Sitter <sit...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |RESOLVED
            Summary|No trash cans for each      |no per-device trashcans
                   |device                      |with btrfs (inconsistent
                   |                            |st_dev)
         Resolution|WAITINGFORINFO              |UPSTREAM

--- Comment #5 from Harald Sitter <sit...@kde.org> ---
Simply put: the st_dev from mountinfo is inconsistent with the st_dev from stat
despite the docs saying it should be consistent.

Here's the relevant information

mountinfo:
> 59 45 0:53 / /run/media/usuario/0b60e126-5a13-47c3-a4dc-60b4f8f4b067 
> rw,nosuid,nodev,relatime shared:301 - btrfs /dev/sdd1 
> rw,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/
It says the st_dev should be 0:53

stat:
> Device: 0,54    Inode: 260         Links: 1
It says the actual st_dev is 0:54

This looks entirely unexpected considering the docs explicitly say 
> (3)   major:minor:     value of st_dev for files on filesystem
https://docs.kernel.org/filesystems/proc.html?highlight=mountinfo#proc-pid-mountinfo-information-about-mounts

As suspected this then trips up our device detection logic because we can't
tell which device (in mountinfo) relates to the file.

I think it's best if you file a bug with your distro kernel so this can be
taken upstream.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to