Jason Tackaberry wrote:
> On Wed, 2006-04-19 at 11:08 +0200, Dirk Meyer wrote:
>> Arg, you have this softlink stuff again. Can you send me a private
>> mail with your directory structure.
>
> The basic idea is:
>       * I have 4 disks on my file server, orion, mounted locally
>         under /data/disks/[1-4]
>       * orion:/ is mounted on viper, my freevo box, under /orion
>       * orion:/data/disks/[1-4] are mounted on viper
>         under /orion/data/disks/[1-4]
>       * I've a symlink on viper /data -> /orion/data (and I do this on
>         all my boxes, so /data looks the same everywhere).
>       * All my mp3s are on a single disk, on /data/disks/1/mp3, which on
>         viper is actually /orion/data/disks/1/mp3 (due to the /data
>         symlink); a symlink /data/mp3 -> /data/disks/1/mp3
>       * All my movies are spread out across all my disks,
>         under /data/disks/[1-4]/movies/; there are no symlinks under
>         here.
>       * A directory /data/movies exists.  Under /data/movies are
>         symlinks to all the movies distributed out across my disks, so I
>         can access my movies in a central place and not care what disk
>         they're on (I have a script to keep this in sync when I add a
>         new movie to some disk).

OK, I found the bug. I used the following test directory, it should
match your layout:

drwxr-xr-x [...]/orion
drwxr-xr-x [...]/orion/data
drwxr-xr-x [...]/orion/data/disks
drwxr-xr-x [...]/orion/data/disks/1
drwxr-xr-x [...]/orion/data/disks/1/movies
drwxr-xr-x [...]/orion/data/disks/1/movies/Aeon Flux
-rw-r--r-- [...]/orion/data/disks/1/movies/Aeon Flux/aeon_flux_m480.mov
drwxr-xr-x [...]/orion/data/disks/2
drwxr-xr-x [...]/orion/data/disks/2/movies
drwxr-xr-x [...]/orion/data/disks/2/movies/Ice Age 2
-rw-r--r-- [...]/orion/data/disks/2/movies/Ice Age 2/ice_age_2-tsr_m480.mov
drwxr-xr-x [...]/orion/data/disks/3
drwxr-xr-x [...]/orion/data/disks/4
drwxr-xr-x [...]/orion/data/movies
lrwxrwxrwx [...]/orion/data/movies/Aeon Flux -> ../disks/1/movies/Aeon Flux
lrwxrwxrwx [...]/orion/data/movies/Ice Age 2 -> ../disks/2/movies/Ice Age 2
lrwxrwxrwx [...]/data -> orion/data

> Yes, /data/movies would exist in the db, but when it wants to
> parse /data/disks/2/movies/SomeMovie then /data/disks/2/movies will have
> to be added to the db.

It should work now, please try again. BTW, also on the TODO list:
broken softlinks and dirs/file without read access.


Dischi

-- 
Time flies... after you hit the snooze button.

Attachment: pgpzniYus6bp1.pgp
Description: PGP signature

Reply via email to