summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-22 14:25:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-22 14:25:46 +0100
commit23ea3dcb48ea4ad8d07a3558742aef08faff0c94 (patch)
tree2595111e218843f57a10254b7b0bc8e7e827e47d
parenta4b8729e6af299a3f2eb4fa676e93cfd85778521 (diff)
downloadvdr-23ea3dcb48ea4ad8d07a3558742aef08faff0c94.tar.gz
vdr-23ea3dcb48ea4ad8d07a3558742aef08faff0c94.tar.bz2
No longer logging an error message in DirSizeMB() if the given directory doesn't exist
-rw-r--r--HISTORY7
-rw-r--r--config.h10
-rw-r--r--tools.c4
3 files changed, 14 insertions, 7 deletions
diff --git a/HISTORY b/HISTORY
index c2ebc46d..b44e8183 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8260,3 +8260,10 @@ Video Disk Recorder Revision History
IsOnVideoDirectoryFileSystem().
- Added support for systemd (thanks to Christopher Reimer). To activate this you
need to add "SDNOTIFY=1" to the 'make' call.
+
+2014-03-22: Version 2.1.7
+
+- No longer logging an error message in DirSizeMB() if the given directory doesn't
+ exist. This avoids lots of log entries in case several VDRs use the same video
+ directory and one of them has already physically removed a recording directory,
+ while the others still have it in their list of deleted recordings.
diff --git a/config.h b/config.h
index d3654386..7015b331 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 3.8 2014/02/25 10:00:23 kls Exp $
+ * $Id: config.h 3.9 2014/03/22 14:23:44 kls Exp $
*/
#ifndef __CONFIG_H
@@ -22,13 +22,13 @@
// VDR's own version number:
-#define VDRVERSION "2.1.6"
-#define VDRVERSNUM 20106 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "2.1.7"
+#define VDRVERSNUM 20107 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:
-#define APIVERSION "2.1.6"
-#define APIVERSNUM 20106 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "2.1.7"
+#define APIVERSNUM 20107 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
diff --git a/tools.c b/tools.c
index a2055ec8..332fce42 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 3.2 2013/09/22 13:19:19 kls Exp $
+ * $Id: tools.c 3.3 2014/03/22 14:22:55 kls Exp $
*/
#include "tools.h"
@@ -609,7 +609,7 @@ int DirSizeMB(const char *DirName)
}
return size;
}
- else
+ else if (errno != ENOENT)
LOG_ERROR_STR(DirName);
return -1;
}