[Pkg-lustre-svn-commit] r440 - in /trunk/debian/patches: 00list bug12769-ql-fix.dpatch

goswin-guest at users.alioth.debian.org goswin-guest at users.alioth.debian.org
Wed Feb 13 14:10:13 UTC 2008


Author: goswin-guest
Date: Wed Feb 13 14:10:12 2008
New Revision: 440

URL: http://svn.debian.org/wsvn/pkg-lustre/?sc=1&rev=440
Log:
Ensure data consistency on close.


Added:
    trunk/debian/patches/bug12769-ql-fix.dpatch
Modified:
    trunk/debian/patches/00list

Modified: trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-lustre/trunk/debian/patches/00list?rev=440&op=diff
==============================================================================
--- trunk/debian/patches/00list (original)
+++ trunk/debian/patches/00list Wed Feb 13 14:10:12 2008
@@ -12,9 +12,10 @@
 remove-set_tunables.dpatch
 libsysio.dpatch
 #bug10600-smaller-qunit-quota.dpatch
-bug14619-broken-qunit-allock.dpatch
+bug12769-ql-fix.dpatch
 
 # Debian patches
+bug14619-broken-qunit-allock.dpatch
 bash_completion.dpatch
 lustre_manpage.dpatch
 tex2pdf.dpatch

Added: trunk/debian/patches/bug12769-ql-fix.dpatch
URL: http://svn.debian.org/wsvn/pkg-lustre/trunk/debian/patches/bug12769-ql-fix.dpatch?rev=440&op=file
==============================================================================
--- trunk/debian/patches/bug12769-ql-fix.dpatch (added)
+++ trunk/debian/patches/bug12769-ql-fix.dpatch Wed Feb 13 14:10:12 2008
@@ -1,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## bug12769-ql-fix.dpatch by Goswin von Brederlow <goswin-v-b at web.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Ensure that dirty pages are flushed out with the right creds
+
+ at DPATCH@
+diff --git a/lustre/llite/file.c b/lustre/llite/file.c
+--- a/lustre/llite/file.c
++++ b/lustre/llite/file.c
+@@ -281,6 +281,10 @@ int ll_file_release(struct inode *inode,
+         if (lsm)
+                 lov_test_and_clear_async_rc(lsm);
+         lli->lli_async_rc = 0;
++
++        /* Ensure that dirty pages are flushed out with the right creds */
++        if (file->f_mode & FMODE_WRITE)
++                filemap_fdatawrite(file->f_mapping);
+ 
+         rc = ll_mdc_close(sbi->ll_mdc_exp, inode, file);
+         RETURN(rc);




More information about the Pkg-lustre-svn-commit mailing list