From d2988dc7ddd832ffc94f6b76c54898217812b7cc Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 18 Oct 2013 16:26:46 -0500 Subject: remove redundant sync calls The localmount and mount-ro scripts were flushing pending disk writes by calling sync twice in succession. This is no longer necessary; see the bug report and blog post for reasons we were still doing this. Reported-by: Patrick Lauer X-Gentoo-Bug: 487382 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487382 --- init.d/localmount.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/localmount.in') diff --git a/init.d/localmount.in b/init.d/localmount.in index 5444889..42b7988 100644 --- a/init.d/localmount.in +++ b/init.d/localmount.in @@ -59,7 +59,7 @@ stop() no_umounts_r="^($no_umounts_r)$" # Flush all pending disk writes now - sync; sync + sync . "$RC_LIBEXECDIR"/sh/rc-mount.sh -- cgit v1.2.3