Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 5 years ago

Closed 4 years ago

#6726 closed patch (wontfix)

Patch mythrename.pl to add '--hardlink' option

Reported by: scott@… Owned by: xris
Priority: minor Milestone: unknown
Component: Contributed Scripts & Apps Version: 0.21
Severity: low Keywords: link hardlink
Cc: Ticket locked: no

Description

This is a patch to mythrename.pl to add a '--hardlink' option. When scanning an NFS share over the network with a device such as a Popcorn Hour, symbolic linked files will list in the directory contents, but can't be played (retrieved) due to the way NFS handles (or doesn't handle) symbolic links. The patch adds a new option '--hardlink' to the mythrename.pl script that works exactly the same as the '--link' option, only it creates/deletes hard links instead of symbolic links.

Attachments (1)

mythrename.pl.diff (6.7 KB) - added by scott@… 5 years ago.
Patch to add '--hardlink' option

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by scott@…

Patch to add '--hardlink' option

comment:1 Changed 5 years ago by xris

  • Owner changed from ijr to xris
  • Status changed from new to assigned

comment:2 Changed 4 years ago by mdean

  • Resolution set to wontfix
  • Status changed from assigned to closed

Closing this as wontfix since the changes would add significant complexity to the use of the script--the hard link capability would not work on the majority of MythTV configurations, so users would be left wondering why it won't work. See the thread at http://www.gossamer-threads.com/lists/mythtv/dev/388848#388848 for additional information.

In summary:

  • hard links only work on the same file system as the original recording file (so the functionality would not work for systems with multiple file systems)
  • when you delete the original recording the hard link would remain, leaving a multi-gigabyte file on the hard drive if "Delete files slowly" is disabled or a 4MiB or smaller stub if "Delete files slowly" is enabled
  • Setting up directory paths properly on the client and server allows symlinks to work with NFS
  • Setting up server-side symlink dereferencing in CIFS allows symlinks to work properly regardless of directory structure
  • The contrib/exports/mythfs.py script creates a FUSE-based file system view of recordings with user-readable file names, which can be used when symlinks aren't desired

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.