blob: 793d70259838e79251760002aa95a8a175a6d005 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Disable the check for different filesystems
2
3The logrotate supports rotate log across different filesystems now, so
4disable the check for different filesystems.
5
6Upstream-Status: Pending
7
8Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9---
10 config.c | 9 ---------
11 1 file changed, 9 deletions(-)
12
13diff --git a/config.c b/config.c
14index dbbf563..64e66f6 100644
15--- a/config.c
16+++ b/config.c
17@@ -1493,15 +1493,6 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
18 goto error;
19 }
20 }
21-
22- if (sb.st_dev != sb2.st_dev
23- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) {
24- message(MESS_ERROR,
25- "%s:%d olddir %s and log file %s "
26- "are on different devices\n", configFile,
27- lineNum, newlog->oldDir, newlog->files[i]);
28- goto error;
29- }
30 }
31 }
32