Skip to content
Snippets Groups Projects
Commit 18d4e23d authored by Johann Lombardi's avatar Johann Lombardi
Browse files

Branch b1_6

b=13930
i=johann,adilger

ll_inode_fill_obdo() expects OBD_BRW_WRITE or OBD_BRW_READ as rw argument
rather than READ/WRITE.
parent 977225f9
No related merge requests found
...@@ -36,6 +36,13 @@ Details : brw_redo_request can be used for resend requests from ptlrpcd and ...@@ -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 ptlrpcd set if request is changed and can be safety changed to use
rq_set directly. 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> 2007-10-26 Cluster File Systems, Inc. <info@clusterfs.com>
......
...@@ -223,7 +223,7 @@ static ssize_t ll_direct_IO_26(int rw, struct kiocb *iocb, ...@@ -223,7 +223,7 @@ static ssize_t ll_direct_IO_26(int rw, struct kiocb *iocb,
if (set == NULL) if (set == NULL)
RETURN(-ENOMEM); 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_oa = &oa;
oinfo.oi_md = lsm; oinfo.oi_md = lsm;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment