From 4519f33eb594be9b1cf5b6d1bcfedeae071d0793 Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 8 Jul 2007 20:38:18 +0000 Subject: [PATCH] Log ENOSPC (full disk) errors only during debug --- libntfs-3g/logging.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libntfs-3g/logging.c b/libntfs-3g/logging.c index fd49f2e9..f156e6a7 100644 --- a/libntfs-3g/logging.c +++ b/libntfs-3g/logging.c @@ -358,6 +358,10 @@ int ntfs_log_handler_syslog(const char *function __attribute__((unused)), char log[LOG_LINE_LEN]; int ret, olderr = errno; +#ifndef DEBUG + if ((level & NTFS_LOG_LEVEL_PERROR) && errno == ENOSPC) + return 1; +#endif ret = vsnprintf(log, LOG_LINE_LEN, format, args); if (ret < 0) { vsyslog(LOG_NOTICE, format, args);