Ticket #6726 (closed patch: wontfix)
Opened 4 years ago
Last modified 3 years ago
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
Change History
Changed 4 years ago by scott@…
- Attachment mythrename.pl.diff added
comment:1 Changed 4 years ago by xris
- Owner changed from ijr to xris
- Status changed from new to assigned
comment:2 Changed 3 years ago by mdean
- Status changed from assigned to closed
- Resolution set to wontfix
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

Patch to add '--hardlink' option