From 80ce5e695863e31b03fe87bd100765b62e93bfc0 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Fri, 21 Jan 2011 10:51:57 +0100 Subject: [PATCH] - don't force sync io for all filesystems --- cyrus-imapd.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec index 87b7d42..03ee87f 100644 --- a/cyrus-imapd.spec +++ b/cyrus-imapd.spec @@ -1,6 +1,6 @@ Name: cyrus-imapd Version: 2.3.16 -Release: 6%{?dist} +Release: 7%{?dist} %define ssl_pem_file %{_sysconfdir}/pki/%{name}/%{name}.pem @@ -307,8 +307,13 @@ rm -rf %{buildroot} %post /sbin/chkconfig --add %{name} -# Force synchronous updates, usually only on extX filesystems -chattr -R +S $i %{_var}/lib/imap/{user,quota} %{_var}/spool/imap 2>/dev/null ||: +# Force synchronous updates, usually only on ext2 filesystems +for i in %{_var}/lib/imap/{user,quota} %{_var}/spool/imap +do + if [ "$(find $i -maxdepth 0 -printf %%F)" = "ext2" ]; then + chattr -R +S $i 2>/dev/null ||: + fi +done # Create SSL certificates exec > /dev/null 2> /dev/null @@ -479,6 +484,9 @@ fi %{_mandir}/man1/* %changelog +* Fri Jan 21 2011 Michal Hlavinka - 2.3.16-7 +- don't force sync io for all filesystems + * Fri Jul 07 2010 Michal Hlavinka - 2.3.16-6 - follow licensing guideline update - devel sub-package has to have virtual static provides (#609604)