From: Elan Ruusamäe Date: Mon, 7 Apr 2008 19:50:07 +0000 (+0000) Subject: - jbj: perform fsync(2) before closing installed file. X-Git-Tag: auto/th/rpm-4_4_9-64~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=79f5c7d2526848ac344424f17c6375e465d67ca4;p=packages%2Frpm.git - jbj: perform fsync(2) before closing installed file. will solve xfs ENOSPC errors on fast machines with relatively small partitions Changed files: rpm-rpm5-patchset-7657.patch -> 1.1.2.1 --- diff --git a/rpm-rpm5-patchset-7657.patch b/rpm-rpm5-patchset-7657.patch new file mode 100644 index 0000000..a34ed0b --- /dev/null +++ b/rpm-rpm5-patchset-7657.patch @@ -0,0 +1,23 @@ +Index: rpm/CHANGES + 4.5 -> 5.0: ++ - jbj: perform fsync(2) before closing installed file. + - jbj: default RPMCANONCOLOR to 3 everywhere but ia64 and mips*. + - rse: remove now unused LIBDIR (--with-path-lib) from Autoconf and rename --with-path-usrlib to --with-path-lib + - jbj: hardwire _GetPass() to avoid --addsign (*Getpass) segfault for now. +Index: rpm/lib/fsm.c +RCS File: /v/rpm/cvs/rpm/lib/fsm.c,v +rcsdiff -q -kk '-r2.115' '-r2.116' -u '/v/rpm/cvs/rpm/lib/fsm.c,v' 2>/dev/null +--- lib/fsm.c 2007/06/21 12:13:29 2.115 ++++ lib/fsm.c 2007/07/09 23:18:17 2.116 +@@ -1043,8 +1043,10 @@ + xx = munmap(mapped, nmapped); + /*@=noeffect@*/ + fsm->rdbuf = rdbuf; +- } ++ } else + /*@=branchstate@*/ ++#else ++ xx = fsync(Fileno(fsm->rfd)); + #endif + + }