Opened 12 years ago

Closed 11 years ago

#6726 closed patch (wontfix)

Patch 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


This is a patch to 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 script that works exactly the same as the '--link' option, only it creates/deletes hard links instead of symbolic links.

Attachments (1) (6.7 KB) - added by scott@… 12 years ago.
Patch to add '--hardlink' option

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by scott@…

Attachment: added

Patch to add '--hardlink' option

comment:1 Changed 12 years ago by xris

Owner: changed from Isaac Richards to xris
Status: newassigned

comment:2 Changed 11 years ago by sphery

Resolution: wontfix
Status: assignedclosed

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 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/ script creates a FUSE-based file system view of recordings with user-readable file names, which can be used when symlinks aren't desired
Note: See TracTickets for help on using tickets.