[cyrus-imapd] - don't force sync io for all filesystems
Michal Hlavinka
mhlavink at fedoraproject.org
Fri Jan 21 09:52:06 UTC 2011
commit 80ce5e695863e31b03fe87bd100765b62e93bfc0
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Fri Jan 21 10:51:57 2011 +0100
- don't force sync io for all filesystems
cyrus-imapd.spec | 14 +++++++++++---
1 files 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 <mhlavink at redhat.com> - 2.3.16-7
+- don't force sync io for all filesystems
+
* Fri Jul 07 2010 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-6
- follow licensing guideline update
- devel sub-package has to have virtual static provides (#609604)
More information about the scm-commits
mailing list