After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323094 - Identify media by UID instead of mount point
Identify media by UID instead of mount point
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: Removable Media
HEAD
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 592502 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-03 11:03 UTC by Nicholas Allen
Modified: 2018-05-24 10:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.63 KB, patch)
2005-12-03 12:12 UTC, James "Doc" Livingston
committed Details | Review

Description Nicholas Allen 2005-12-03 11:03:05 UTC
Please describe the problem:
I have all my music collection on a removable USB hard disk and if the disk is
mounted and unmounted while rhythmbox is loaded, rhythmbox used to hide and
display the tracks. This was one of the coolest things of rhythmbox and the only
music player that handled music on a removable drive properly. Unfortunately, in
the HEAD version (which used to work a few days ago) this no longer happens. 

Steps to reproduce:
1. Have collection on removable media
2. Mount/unmount the drive while rb loaded
3. Look at the library and see if the relavant songs are hidden or shown as
appropriate


Actual results:
When I unmount the songs still appear in the library even though they are no
longer available.
If not mounted when started the library is empty and then mounting does not make
the songs appear.

Expected results:


Does this happen every time?
yes

Other information:
Comment 1 James "Doc" Livingston 2005-12-03 12:12:07 UTC
Created attachment 55570 [details] [review]
patch

This will cause Rhythmbox not to delete db entries even when the mountpoint is
mounted, and only remove them after not being seen for 45 days. Doing that also
fixes problems caused if two different removable media (one with you music)
gets mounted on the same mountpoint at different times.

The only downside I can think of is that you will have stale db entries present
if you actually do delete (or move) your music. This will make RB take longer
to load.
Comment 2 Nicholas Allen 2005-12-03 17:20:33 UTC
Is it not possible to use the serial number of the device attached as a means of
identifying it instead of using the mount point (because two different devices
may get mounted at the same mount point so this is not reliable). Then you
wouldn't need the 45 day thing. The serial number should be able to be retrieved
from the HAL library shouldn't it? This would seem to be the most reliable way
to do it as then the library would really know which device a file in the
library is stored on and not where it appears mounted.
Comment 3 James "Doc" Livingston 2005-12-06 02:45:30 UTC
I've committed the patch, as it was needed for some fixes on bug 323096 (as well
as for this bug).

Using a device serial number would work for most removable media, but wouldn't
work for other things like network mounts. What would be *really* nice was is
Rhythmbox stored the serial number (or equivalent) so that it could tell when
the same thing has been mounted on a different mountpoint.
Comment 4 Nicholas Allen 2005-12-10 12:40:19 UTC
Yes that would be cool. If rb could distinguish between removeable media when
possible and otherwise use the mount point when not. For network shares I think
the mount point is fine. For removeable media though the serial number would be
a much more reliable way of doing it. I have 2 USB disks and Gnome mounts them
both at the same mount point (/media/TREKSTOR). I have to make sure I plug the
one with my music in first otherwise rb will get confused...
Comment 5 James "Doc" Livingston 2006-02-18 08:19:41 UTC
Eetitling to reflect actual issue
Comment 6 Jonathan Matthew 2010-08-10 05:31:53 UTC
*** Bug 592502 has been marked as a duplicate of this bug. ***
Comment 7 GNOME Infrastructure Team 2018-05-24 10:56:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/99.