[vdr] Broken links in recordings with long pathnames

Mike Constabel mike.constabel at gmail.com
Mon Mar 27 08:16:18 CEST 2006


Hello,

I use vdr-1.3.44, Debian Etch, Kernel 2.6.15.5.


I programmed with epgsearch a timer which results in this path on harddisk:

/video1.0/Information/Gesellschaft/Ripleys_unglaubliche_Welt/Der_Fallschirm-S
tunt_^B_Mode_aus_Luftpolster-Folie_^B_Der_verbotene_Maden-Käse_^B_Die_Selfmad
e-Insel_^B_Die_Kürbis-Kombo_^B_Pfeil_im_Kopf_^B_Die_längs+ten_Fingernägel_der
_Welt_^B_Der_Mann_ohne_Gesicht/2006-03-24.18.20.40.99.rec


Because the first disk is full, the 001.vdr goes to video1.1.

VDR creates this link:

lrwxrwxrwx 1 vdr1 vdr 288 2006-03-24 18:39 001.vdr ->
/video1.1/Information/Gesellschaft/Ripleys_unglaubliche_Welt/Der_Fallschirm-St
unt_?_Mode_aus_Luftpolster-Folie_?_Der_verbotene_Maden-Käse_?_Die_Selfmade-Ins
el_?_Die_Kürbis-Kombo_?_Pfeil_im_Kopf_?_Die_längsten_Fingernägel_der_Welt_?_De
r_Mann_ohne_Gesicht/20

As you can see, the link is broken, the target is truncated to 256 Bytes.



An other recording, the same problem.

/video1.0/Information/Wissen/W_wie_Wissen/Themen:_Sommerzeit_-_Die_gestohlene_
Stunde_Weltraum-Wetterfrösche_haben_bald_3-D-Blick_auf_die_Sonne_Die_schwarze_
Sonne_Sonnenstürme_und_Polarlichter_Wissen_des_Alltags:+_Wie_drehen_sich_Schli
ngpflanzen?/2006-03-26.16.58.25.99.rec


The link:

lrwxrwxrwx 1 vdr1 vdr 279 2006-03-26 16:58 001.vdr ->
/video1.1/Information/Wissen/W_wie_Wissen/Themen:_Sommerzeit_-_Die_gestohlene_
Stunde_Weltraum-Wetterfrösche_haben_bald_3-D-Blick_auf_die_Sonne_Die_schwarze_
Sonne_Sonnenstürme_und_Polarlichter_Wissen_des_Alltags:_Wie_drehen_sich_Schlin
gpflanzen?/2006-03-26.


Even on shell I cannot create links longer than 256 Bytes.


I think:

PATH_MAX is here 4096, but SYMLINK_MAX is not defined and so:

{SYMLINK_MAX}
    Maximum number of bytes in a symbolic link.
    Minimum Acceptable Value: {_POSIX_SYMLINK_MAX}

{_POSIX_SYMLINK_MAX}
    The number of bytes in a symbolic link.
    Value: 255



VDR should not create pathes longer 254 Byte, or what do you think?


/video<...>.rec/???.vdr
<--- max 255 ---------->


cu,
Mike




More information about the vdr mailing list