  Brian Guilfoos mythtv at guilfoos.com Wed Apr 11 13:51:27 UTC
2007  Pietralla, Siegfried P wrote: > so now i'm done - i have a
simple way to protect selected recordings > from deletion, and
all done through the standard interface without the > need for
any scripting or application changes. as a bonus, this also >
protects me from stupid mistakes when using the command line.
This is pretty clever.  I haven't tested it yet, but it looks
promising enough that I SSH'd into my network from work and set
everything up. Even wrote up a page on the wiki about this, as
it seems like a really useful hack.   One question I have...
based on reading the documentation for "chattr" (quoted in the
wiki), it seems like this might cause transcoding to go a little
wonky.  I'll test it out myself tonight, but looking at the
source (mythtv/programs/mythtranscode/main.cpp) it looks like
it'd transcode fine, but then have an error a) renaming the old
file to "filename.old" and then b) deleting "filename.old"
(since it doesn't exi