Bug 15189 - /media/*/.Squeezebox directories are being written on unmounted paths
: /media/*/.Squeezebox directories are being written on unmounted paths
Status: RESOLVED INVALID
Product: SB Touch
Classification: Unclassified
Component: TinySC
: unspecified
: PC Other
: P1 normal (vote)
: 7.5.0
Assigned To: Andy Grundman
: TinySC
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-25 09:12 UTC by Ben Klaas
Modified: 2009-12-02 07:02 UTC (History)
4 users (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-11-25 09:12:04 UTC
the /media/*/.Squeezebox directory is often present on a Fab4 filesystem for /media paths that are not mounted. That is, a /media/sda1/.Squeezebox might exist but without the USB drive present, meaning that /media/sda1 is really on the local filesystem.

this is particularly a problem when e.g. an SD card is removed and then a USB drive is added. The scanner starts up and then tries to scan /media/mmc* instead of /media/sda1, resulting in an empty library.

strategy should be for scanner to not read .Squeezebox directories on unmounted drives
Comment 1 Andy Grundman 2009-11-25 09:13:49 UTC
We need something that uses the mount command and cleans up stale /media dirs.
Comment 2 SVN Bot 2009-11-26 01:34:19 UTC
 == Auto-comment from SVN commit #29484 to the slim repo by michael ==
 == https://svn.slimdevices.com/slim?view=revision&revision=29484 ==

Bug: 15189
Description: ignore mountpoints in /media/ which aren't mounted
Comment 3 Michael Herger 2009-11-26 01:35:49 UTC
Maybe we want to add some cleanup code to media-watcher.pl? Or is this still considered a temporary solution?
Comment 4 Ben Klaas 2009-11-26 05:36:09 UTC
I agree we should cleanup those dirs, but media-watcher.pl will be replaced by SP-side udev listener code.
Comment 5 Michael Herger 2009-12-01 22:40:39 UTC
Ben - isn't this part of your work in bug 14880?
Comment 6 Ben Klaas 2009-12-02 07:02:11 UTC
I suppose it is now...my plan is to do an rmdir /media/<devName> after successfully umounting /media/<devName>

closing in deference to 14880