[cyrus-imapd/f13/master] - don't force sync io for all filesystems

Michal Hlavinka mhlavink at fedoraproject.org
Fri Jan 21 10:16:53 UTC 2011


commit 41d2b7ebb623836277f9ade0b8e49969896effbe
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Jan 21 11:16:43 2011 +0100

    - don't force sync io for all filesystems

 cyrus-imapd.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec
index 191f820..a4a4dc8 100644
--- a/cyrus-imapd.spec
+++ b/cyrus-imapd.spec
@@ -2,7 +2,7 @@
 
 Name: cyrus-imapd
 Version: 2.3.16
-Release: 3%{?dist}
+Release: 4%{?dist}
 
 %define ssl_pem_file %{_sysconfdir}/pki/%{name}/%{name}.pem
 
@@ -340,7 +340,12 @@ find %{buildroot}%{perl_vendorarch} -name "*.bs" -exec %{__rm} -f {} \;
 /sbin/chkconfig --add %{name}
 
 # Force synchronous updates, usually only on ext2 filesystems
-chattr -R +S $i %{_var}/lib/imap/{user,quota} %{_var}/spool/imap 2>/dev/null ||:
+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
@@ -521,6 +526,9 @@ fi
 %{_mandir}/man1/*
 
 %changelog
+* Fri Jan 21 2011 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-4
+- don't force sync io for all filesystems
+
 * Tue Apr 20 2010 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-3
 - add support for QoS marked traffic (#576652)
 


More information about the scm-commits mailing list