Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: option -v



Klaus Gerding wrote:
> 
> hi,
> 
> my vdr is now running very nice. but there is one thing...
> 
> with the -v option i give my vdr the advice to use several
> mounted disks to store the recordings. i decided not to make
> one big lvm volume to avoid loosing all movies by having a
> hd-crash. but now i saw, that vdr stripes one recording
> across all mounted disks. is there another option to stop
> this behavior?

Yes, there is a very simple (quick and dirty) way to solve 
90% of that problem in vdr. Instead of using the emptiest
disk every time for each new part, use the first disk that
has more than 4 GB available. This way, only one of your
recordings (instead of all) gets spread over more than one
disk.

Here is the patch:


--- videodir.c.orig     Sun Sep  2 16:55:15 2001
+++ videodir.c  Thu Jan 17 17:20:11 2002
@@ -118,7 +118,7 @@
      if (Dir.IsDistributed()) {
         // Find the directory with the most free space:
         uint MaxFree = Dir.FreeMB();
-        while (Dir.Next()) {
+        while (Dir.Next() && (MaxFree < 4096)) {
               uint Free = FreeDiskSpaceMB(Dir.Name());
               if (Free > MaxFree) {
                  Dir.Store();


Of course, this still leaves all the index.vdr and summary.vdr
files on the "master" disk. You should back up those! They are
very small and archiving the summaries can actually be useful.


HTH, Carsten.



Home | Main Index | Thread Index