Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From e47796c8e8270a3d14f0b06af8a9e916c2225514 Mon Sep 17 00:00:00 2001 |
| 2 | From: Robert Yang <liezhi.yang@windriver.com> |
| 3 | Date: Tue, 8 Jan 2019 06:27:06 +0000 |
| 4 | Subject: [PATCH] Disable the check for different filesystems |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | The logrotate supports rotate log across different filesystems now, so |
| 7 | disable the check for different filesystems. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
| 12 | --- |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | config.c | 9 --------- |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | 1 file changed, 9 deletions(-) |
| 15 | |
| 16 | diff --git a/config.c b/config.c |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | index 633b843..99a4a3b 100644 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | --- a/config.c |
| 19 | +++ b/config.c |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 20 | @@ -1765,15 +1765,6 @@ duperror: |
| 21 | goto error; |
| 22 | } |
| 23 | } |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | - |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 25 | - if (sb.st_dev != sb2.st_dev |
| 26 | - && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) { |
| 27 | - message(MESS_ERROR, |
| 28 | - "%s:%d olddir %s and log file %s " |
| 29 | - "are on different devices\n", configFile, |
| 30 | - lineNum, newlog->oldDir, newlog->files[i]); |
| 31 | - goto error; |
| 32 | - } |
| 33 | } |
| 34 | } |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 36 | -- |
| 37 | 2.18.1 |
| 38 | |