Bugzilla – Bug 17596
Scanner doesn't scan soft links over samba
Last modified: 2011-09-26 06:15:32 UTC
It seems like the video scanner in LMS isn't able to scan soft links exposed over samba where the samba server has been configured with unix_extensions=no so the soft links are exposed as standard files. The reason for this kind of setup is that I'd like to expose a MythTV recording directory. MythTV produces files like this as standard with no metadata inside the file: 2145_20110826150000.mpg But you can run mythrename.pl script and it will then produce a directory with soft links named like: V - 2011-08-26, 3-00 PM - Mother's Day.mpg (which points to the above cryptical file name). The scanner doesn't produce any errors in the log but when running it from the command line with debugging enabled I get things like this in the console: stat error on file /mnt/video_smb/V - 2011-08-26, 3-00 PM - Mother's Day.mpg, errno=75 Skipping 0-byte file: /mnt/video_smb/V - 2011-08-26, 3-00 PM - Mother's Day.mpg progress_update /mnt/video_smb/V - 2011-08-26, 3-00 PM - Mother's Day.mpg Running ls -l on the same file gives this: -rwxr-xr-x 1 root root 1183489516 2011-08-26 09:50 V - 2011-08-26, 3-00 PM - Mother's Day.mpg Running stat on the same file gives this: File: `V - 2011-08-26, 3-00 PM - Mother\'s Day.mpg' Size: 1183489516 Blocks: 2313776 IO Block: 16384 regular file Device: 17h/23d Inode: 124770535386 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-09-25 18:55:02.000000000 -0400 Modify: 2011-08-26 09:50:00.000000000 -0400 Change: 2011-08-26 09:50:00.000000000 -0400 For me the severity is critical because LMS is useless for videos if this doesn't work but feel free to adjust the severity of this bug if you feel that it's not critical issue for the general public.
Strange, you'd expect the Samba client to not have a clue that the file is any different from a normal file in this case.