Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | Disable the check for different filesystems |
| 2 | |
| 3 | The logrotate supports rotate log across different filesystems now, so |
| 4 | disable the check for different filesystems. |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
| 9 | --- |
| 10 | config.c | 9 --------- |
| 11 | 1 file changed, 9 deletions(-) |
| 12 | |
| 13 | diff --git a/config.c b/config.c |
| 14 | index 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 | |