Opened 18 years ago

Closed 18 years ago

#1216 closed defect (fixed)

mythrename.pl renames symlinks while target filename stays the same - breaks 'recorded' table

Reported by: hansi.urpils@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi!

mythrename.pl renames my recordings just fine. However, I nfs-mounted the recordings directory of the master backend to my slave backend (to a separate directory) and symlinked the MBE recordings to the SBE recordings directory.

mythrename.pl will rename these symlinks as well and change the 'basename' field, but the file names for the recordings will stay the same on the MBE. This effectively breaks my ability to watch the shows recorded on the master backend since the MBE will look for the wrong filename.

I think mythrename.pl should either verify that a file name actually belongs to the host where the script is run ('hostname' field) or not mess with symlinks. It may be necessary/good to check it against the 'LocalHostName?' in mysql.txt (if it's there), but I'm not sure if mythbackend actually honors this setting.

It'd be nice if someone (xris? ;)) could take a look at this. I can provide further information if needed.

Thanks in advance,

Michael 'laga' Haas

Change History (1)

comment:1 Changed 18 years ago by xris

Resolution: fixed
Status: newclosed

(In [8888]) don't rename symlinks -- should fix #1216

Note: See TracTickets for help on using tickets.