[mythtv-users] Scheduled recording causing frontend lockup

Donavan Stanley GeckoFiend at gmail.com
Fri Sep 10 17:09:23 EDT 2004


Do you use LVM?  I was able to pin the blame on this on my LVM volume.
 It started appearing for me once my multi-disk system filled beyond
the capactiy of the first disk.  The following patch should fix it, at
the expense of some extra delay in swtiching over from watching TV to
watching the recording.  I've not had time to figure out how to
properly fix my LVM setup.

Begin stupid_lvm_hack.patch
----
Index: RingBuffer.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/RingBuffer.cpp,v
retrieving revision 1.103
diff -u -r1.103 RingBuffer.cpp
--- RingBuffer.cpp	26 Aug 2004 23:57:55 -0000	1.103
+++ RingBuffer.cpp	10 Sep 2004 21:03:04 -0000
@@ -374,7 +374,12 @@
             is_local = true;
 
         if (is_local)
+        {
+            fd2 = open(filename.ascii(), O_RDONLY|O_LARGEFILE|O_STREAMING);
+            close(fd2);
+            sleep(1);
             fd2 = open(filename.ascii(), O_RDONLY|O_LARGEFILE|O_STREAMING);
+        }
         else
             remotefile = new RemoteFile(filename);


More information about the mythtv-users mailing list