Whamcloud - gitweb
Branch b1_6
authorjohann <johann>
Mon, 29 Oct 2007 16:02:47 +0000 (16:02 +0000)
committerjohann <johann>
Mon, 29 Oct 2007 16:02:47 +0000 (16:02 +0000)
b=13930
i=johann,adilger

ll_inode_fill_obdo() expects OBD_BRW_WRITE or OBD_BRW_READ as rw argument
rather than READ/WRITE.

lustre/ChangeLog
lustre/llite/rw26.c

index 0e9e25d..624a3f4 100644 (file)
@@ -36,6 +36,13 @@ Details    : brw_redo_request can be used for resend requests from ptlrpcd and
             ptlrpcd set if request is changed and can be safety changed to use
             rq_set directly.
 
+Severity   : normal
+Frequency  : when using O_DIRECT and quotas
+Bugzilla   : 13930
+Description: Incorrect file ownership on O_DIRECT output files
+Details    : block usage reported by 'lfs quota' does not take into account
+             files that have been written with O_DIRECT.
+
 --------------------------------------------------------------------------------
 
 2007-10-26         Cluster File Systems, Inc. <info@clusterfs.com>
index 5ea3a6c..ad71bdb 100644 (file)
@@ -223,7 +223,7 @@ static ssize_t ll_direct_IO_26(int rw, struct kiocb *iocb,
         if (set == NULL)
                 RETURN(-ENOMEM);
 
-        ll_inode_fill_obdo(inode, rw, &oa);
+        ll_inode_fill_obdo(inode, rw == WRITE ? OBD_BRW_WRITE : OBD_BRW_READ, &oa);
         oinfo.oi_oa = &oa;
         oinfo.oi_md = lsm;