[dolphin] [Bug 455813] New: Dolphin is using physical device names to identify locally-attached devices

frnobre bugzilla_noreply at kde.org
Wed Jun 22 22:25:04 BST 2022


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

            Bug ID: 455813
           Summary: Dolphin is using physical device names to identify
                    locally-attached devices
           Product: dolphin
           Version: 21.12.3
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: frnobre at gmail.com
                CC: kfm-devel at kde.org
  Target Milestone: ---

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

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


More information about the kfm-devel mailing list