[cyrus-imapd/f14/master] - don't force sync io for all filesystems
Michal Hlavinka
mhlavink at fedoraproject.org
Fri Jan 21 10:05:59 UTC 2011
commit f7706f87ececf3de274b20137fdbc0cd2c33ae88
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Fri Jan 21 11:05:50 2011 +0100
- don't force sync io for all filesystems
cyrus-imapd.spec | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec
index 313edcf..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
@@ -16,7 +16,7 @@ Summary: A high-performance mail server with IMAP, POP3, NNTP and SIEVE support
License: BSD
Group: System Environment/Daemons
URL: http://www.cyrusimap.org/
-Source0: ftp://ftp.cyrusimap.org/cyrus-imap/%{name}-%{version}.tar.gz
+Source0: ftp://ftp.cyrusimap.org/cyrus-imapd/%{name}-%{version}.tar.gz
Source1: cyrus-imapd.logrotate
Source2: cyrus-imapd.imap-2.3.x-conf
Source3: cyrus-imapd.pam-config
@@ -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