Bug 455813 - Dolphin is using physical device names to identify locally-attached devices
Summary: Dolphin is using physical device names to identify locally-attached devices
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-22 21:25 UTC by frnobre
Modified: 2022-06-22 21:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description frnobre 2022-06-22 21:25:04 UTC
SUMMARY
After adding a new disk and rebooting, the device name is changed. For example, sda would become sdb, or dasda would become dasdb.

Before kernel 5.3, devices would always be probed in the order in which they exist on the bus, resulting in the first device being named 'sda', the second device 'sdb', and so on. Controllers could be probed in parallel but the devices would still appear in the same order on a per-controller basis. If there was only one controller, they'd be predictable as long as new devices weren't added in the middle.

Begining with kernel 5.3 the order in which SCSI devices are probed and named has become non-deterministic. This is a result of a change that was submitted to add asynchronous device probing.The probing happens asynchronously on a per-device basis, so even devices on a single bus can appear in "random" order. The logic behind the change is that if you will have dozens of disks, one wants them to start as early as possible, instead of probing/failing/waiting in a synchonous way; in an environment where there are hundreds of disks, and even more partitions, this change is even more important.

The result of this is that in every boot then the local partitions, which are marked as "hidden" (as I won't ever want to unmount them) appear under Devices.

That sd** should be an IdUUID

OBSERVED RESULT
user-places.xbel
</separator>
 <separator href="file:///ssdb">
  <info>
   <metadata owner="http://www.kde.org">
    <UDI>/org/freedesktop/UDisks2/block_devices/sda1</UDI>
    <isSystemItem>true</isSystemItem>
    <IsHidden>false</IsHidden>
   </metadata>
   <metadata owner="http://freedesktop.org">
    <bookmark:icon name="drive-harddisk"/>
   </metadata>
  </info>
  <title>ssdb</title>
 </separator>
 <separator href="file:///ssda">
  <info>
   <metadata owner="http://www.kde.org">
    <UDI>/org/freedesktop/UDisks2/block_devices/sdb1</UDI>
    <isSystemItem>true</isSystemItem>
    <IsHidden>false</IsHidden>
   </metadata>
   <metadata owner="http://freedesktop.org">
    <bookmark:icon name="drive-harddisk"/>
   </metadata>
  </info>
  <title>ssda</title>


EXPECTED RESULT
user-places.xbel
</separator>
 <separator href="file:///ssda">
  <info>
   <metadata owner="http://www.kde.org">
    <UDI>/org/freedesktop/UDisks2/block_devices/sda1</UDI>
    <isSystemItem>true</isSystemItem>
    <IsHidden>false</IsHidden>
   </metadata>
   <metadata owner="http://freedesktop.org">
    <bookmark:icon name="drive-harddisk"/>
   </metadata>
  </info>
  <title>ssda</title>
 </separator>
 <separator href="file:///ssdb">
  <info>
   <metadata owner="http://www.kde.org">
    <UDI>/org/freedesktop/UDisks2/block_devices/sdb1</UDI>
    <isSystemItem>true</isSystemItem>
    <IsHidden>false</IsHidden>
   </metadata>
   <metadata owner="http://freedesktop.org">
    <bookmark:icon name="drive-harddisk"/>
   </metadata>
  </info>
  <title>ssdb</title>


SOFTWARE/OS VERSIONS
OS: openSUSE Leap 15.4 x86_64 
Kernel: 5.14.21-150400.22-default 
DE: Plasma 5.24.4 
WM: KWin 

ADDITIONAL INFORMATION
That sd** should be an IdUUID
Comment 1 frnobre 2022-06-22 21:38:08 UTC
boot 1
~> lsblk -f
NAME        FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                  
└─sda1      ext4   1.0   ssdb    1a26327f-5e35-406d-9a2f-a468e30d29e5  754,4G     9% /ssdb
sdb                                                                                  
└─sdb1      ext4   1.0   ssda    cab23121-349e-4ccd-8453-812778f424db  754,4G     9% /ssda
Comment 2 frnobre 2022-06-22 21:41:58 UTC
boot 2
~> lsblk -f
NAME        FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                  
└─sda1      ext4   1.0   ssda    cab23121-349e-4ccd-8453-812778f424db  754,4G     9% /ssda
sdb                                                                                  
└─sdb1      ext4   1.0   ssdb    1a26327f-5e35-406d-9a2f-a468e30d29e5  754,4G     9% /ssdb