Bug 15507 - scanner doesn't appear to follow symlinks (7.5.0-embedded r29836)
: scanner doesn't appear to follow symlinks (7.5.0-embedded r29836)
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.5.0
: PC Ubuntu Linux
: P1 normal with 2 votes (vote)
: 7.5.0
Assigned To: Andy Grundman
: TinySC
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-20 07:03 UTC by Ken
Modified: 2010-04-08 17:24 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken 2010-01-20 07:03:14 UTC
When I use SQLite in r29836 of the 7.5.0 embedded branch it appears that the scanner is not following symbolic links. The library only shows files in my main music directory (and not those in the symbolically linked directories) and the scan report in the web ui says "Remove deleted files (401 of 401)", which is exactly the number of tracks in the symlink'd directories. Previously with r29767 (Jan 12) the initial automatic rescan was not picking up the symlink'd directories either, but I could add them to the database by following up the auto scan with a "new and changed" scan. That does not work with r29836.

With r29836 I can still force the symlink'd directories into the database by using Browse Music Folder to go to each album. Note that the "remove deleted files" message probably only comes up after I have successfully scanned the symlink'd files via r29767 or BMF. I don't think it appears if I do repeated scans with r29836, but I'd have to confirm.

Two other aspects of my setup that may be worth mentioning are (1) I use MusicIP headless, although rescanning in MusicIP server doesn't change the outcome with r29836, and (2) the symlink'd files are all MP3, whereas the main part of the library is all FLAC. I suspect the problem is the symlink and not the codec, but thought I'd mention it just in case.
Comment 1 snarlydwarf 2010-01-21 09:55:31 UTC
I don't use MusicIP, but I do have my wife's music as a symlink...

It vanishes.

A simple test:

   cd ~  (somewhere outside the music directory anyway)
   mkdir Foo
   cd music
   mkdir Test
   cd Test
   ln -s ~/Foo Bar
   cp ~/somerandom.mp3 Bar

That -should- be picked up, but isn't.
Comment 2 SVN Bot 2010-01-21 13:26:40 UTC
 == Auto-comment from SVN commit #29875 to the slim repo by andy ==
 == https://svn.slimdevices.com/slim?view=revision&revision=29875 ==

Fixed bug 15507, symlink scanning was broken, several lstats were used that should have been stats
Comment 3 Chris Owens 2010-04-08 17:24:31 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!