Mailing List archive

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

[vdr] Re: Many small vdr.??? files with nfs!



Christoph Ackermann wrote:
> 
> Hello vdr@linuxtv.org!
> 
> Since i use vdr in a distributed configuration with nfs mountpoint for
> /video, i observed a tricky behaviour. All recordings are written into
> small vdr.??? files of about 20MB to 60MB - For half an hour near 30
> files. Now, if i do a cut from the beginning to the end, the result is
> one (or more) regular file(s) of about 1GB.
> 
> At the moment i use DVB0.82/VDR0.72 and kernel 2.2.16 for my VDR-Box and
> SuSE7.1 for nfs-server with kernel-nfs 2.2.18
> 
> Does somebody observed the same behaviour and can tell me how? Maybe
> rcp.nfsd makes this mistake!?

That bug has been fixed in VDR 0.80:

--- tools.c     2001/04/01 14:13:36     1.32
+++ tools.c     2001/04/22 10:31:29     1.33
@@ -120,7 +120,7 @@
   return buf;
 }
 
-#define DFCMD  "df -m '%s'"
+#define DFCMD  "df -m -P '%s'"
 
 uint FreeDiskSpaceMB(const char *Directory)
 {
@@ -132,7 +132,7 @@
   if (p) {
      char *s;
      while ((s = readline(p)) != NULL) {
-           if (*s == '/') {
+           if (strchr(s, '/')) {
               uint available;
               sscanf(s, "%*s %*d %*d %u", &available);
               Free = available;


Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index