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:
53741cd
)
b=23335 validate echo_client ostid values
author
Mikhail Pershin
<tappro@sun.com>
Wed, 21 Jul 2010 19:20:17 +0000
(23:20 +0400)
committer
Mikhail Pershin
<tappro@sun.com>
Wed, 21 Jul 2010 19:20:17 +0000
(23:20 +0400)
i=tappro,alex
lustre/obdecho/echo_client.c
patch
|
blob
|
history
diff --git
a/lustre/obdecho/echo_client.c
b/lustre/obdecho/echo_client.c
index
cfd1ff3
..
912d8b6
100644
(file)
--- a/
lustre/obdecho/echo_client.c
+++ b/
lustre/obdecho/echo_client.c
@@
-1790,6
+1790,7
@@
echo_client_iocontrol(unsigned int cmd, struct obd_export *exp,
struct obd_trans_info dummy_oti;
struct oti_req_ack_lock *ack_lock;
struct obdo *oa;
struct obd_trans_info dummy_oti;
struct oti_req_ack_lock *ack_lock;
struct obdo *oa;
+ struct lu_fid fid;
int rw = OBD_BRW_READ;
int rc = 0;
int i;
int rw = OBD_BRW_READ;
int rc = 0;
int i;
@@
-1804,8
+1805,11
@@
echo_client_iocontrol(unsigned int cmd, struct obd_export *exp,
oa->o_valid |= OBD_MD_FLGROUP;
oa->o_seq = FID_SEQ_ECHO;
}
oa->o_valid |= OBD_MD_FLGROUP;
oa->o_seq = FID_SEQ_ECHO;
}
- /* assume we can touch filter native objects with echo device. */
- /* LASSERT(oa->o_seq == FID_SEQ_ECHO); */
+
+ /* This FID is unpacked just for validation at this point */
+ rc = fid_ostid_unpack(&fid, &oa->o_oi, 0);
+ if (rc < 0)
+ RETURN(rc);
switch (cmd) {
case OBD_IOC_CREATE: /* may create echo object */
switch (cmd) {
case OBD_IOC_CREATE: /* may create echo object */