Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1d2713
)
fix regression introduced by capabilities.
author
ericm
<ericm>
Thu, 11 Aug 2005 18:06:50 +0000
(18:06 +0000)
committer
ericm
<ericm>
Thu, 11 Aug 2005 18:06:50 +0000
(18:06 +0000)
b=7300
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
956de88
..
b6f1dc9
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-1139,11
+1139,12
@@
int mds_pack_remote_perm(struct ptlrpc_request *req, int *reply_off,
LASSERT(inode->i_op->permission);
LASSERT(req->rq_export->exp_mds_data.med_remote);
LASSERT(inode->i_op->permission);
LASSERT(req->rq_export->exp_mds_data.med_remote);
- pack_off++; /* XXX: ignore the place for acl count */
perm = (struct mds_remote_perm *)
lustre_msg_buf(req->rq_repmsg, pack_off++, sizeof(perm));
perm = (struct mds_remote_perm *)
lustre_msg_buf(req->rq_repmsg, pack_off++, sizeof(perm));
- if (!perm)
+ if (!perm) {
+ CERROR("no remote perm buf at offset %d\n", pack_off - 1);
return -EINVAL;
return -EINVAL;
+ }
memset(perm, 0, sizeof(*perm));
memset(perm, 0, sizeof(*perm));
@@
-1776,6
+1777,7
@@
out_pop:
mds_exit_ucred(&uc);
return rc;
}
mds_exit_ucred(&uc);
return rc;
}
+
static int mds_access_check(struct ptlrpc_request *req, int offset)
{
struct obd_device *obd = req->rq_export->exp_obd;
static int mds_access_check(struct ptlrpc_request *req, int offset)
{
struct obd_device *obd = req->rq_export->exp_obd;