Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-336 Tighten matching criteria in module_loaded
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
wiretest.c
diff --git
a/lustre/ptlrpc/wiretest.c
b/lustre/ptlrpc/wiretest.c
index
81fe0ff
..
f1f1f81
100644
(file)
--- a/
lustre/ptlrpc/wiretest.c
+++ b/
lustre/ptlrpc/wiretest.c
@@
-65,8
+65,8
@@
void lustre_assert_wire_constants(void)
{
/* Wire protocol assertions generated by 'wirecheck'
* (make -C lustre/utils newwiretest)
- * running on Linux
vl1 2.6.18-prep #3 SMP Mon Apr 19 06:11:00 CDT 2010 x86_64 x86_64
x86_64
- * with gcc version 4.1.2 2007
0626 (Red Hat 4.1.2-14
) */
+ * running on Linux
centos5.localhost 2.6.18-prep #3 SMP Mon Mar 22 08:28:01 EDT 2010
x86_64
+ * with gcc version 4.1.2 2007
1124 (Red Hat 4.1.2-42
) */
/* Constants... */
@@
-493,6
+493,8
@@
void lustre_assert_wire_constants(void)
CLASSERT(OBD_CONNECT_VBR == 0x80000000ULL);
CLASSERT(OBD_CONNECT_SKIP_ORPHAN == 0x400000000ULL);
CLASSERT(OBD_CONNECT_FULL20 == 0x1000000000ULL);
+ CLASSERT(OBD_CONNECT_LAYOUTLOCK == 0x2000000000ULL);
+ CLASSERT(OBD_CONNECT_64BITHASH == 0x4000000000ULL);
/* Checks for struct obdo */
LASSERTF((int)sizeof(struct obdo) == 208, " found %lld\n",
@@
-1735,25
+1737,25
@@
void lustre_assert_wire_constants(void)
LASSERTF((int)sizeof(((struct ldlm_extent *)0)->gid) == 8, " found %lld\n",
(long long)(int)sizeof(((struct ldlm_extent *)0)->gid));
- /* Checks for struct ldlm_flock */
- LASSERTF((int)sizeof(struct ldlm_flock) == 32, " found %lld\n",
- (long long)(int)sizeof(struct ldlm_flock));
- LASSERTF((int)offsetof(struct ldlm_flock
,
start) == 0, " found %lld\n",
- (long long)(int)offsetof(struct ldlm_flock
,
start));
- LASSERTF((int)sizeof(((struct ldlm_flock
*)0)->
start) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct ldlm_flock
*)0)->
start));
- LASSERTF((int)offsetof(struct ldlm_flock
,
end) == 8, " found %lld\n",
- (long long)(int)offsetof(struct ldlm_flock
,
end));
- LASSERTF((int)sizeof(((struct ldlm_flock
*)0)->
end) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct ldlm_flock
*)0)->
end));
- LASSERTF((int)offsetof(struct ldlm_flock
, blocking_pid) == 24
, " found %lld\n",
- (long long)(int)offsetof(struct ldlm_flock
, blocking_pid
));
- LASSERTF((int)sizeof(((struct ldlm_flock
*)0)->blocking_pid) == 4
, " found %lld\n",
- (long long)(int)sizeof(((struct ldlm_flock
*)0)->blocking_pid
));
- LASSERTF((int)offsetof(struct ldlm_flock
,
pid) == 28, " found %lld\n",
- (long long)(int)offsetof(struct ldlm_flock
,
pid));
- LASSERTF((int)sizeof(((struct ldlm_flock
*)0)->
pid) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct ldlm_flock
*)0)->
pid));
+ /* Checks for struct ldlm_flock
_wire
*/
+ LASSERTF((int)sizeof(struct ldlm_flock
_wire
) == 32, " found %lld\n",
+ (long long)(int)sizeof(struct ldlm_flock
_wire
));
+ LASSERTF((int)offsetof(struct ldlm_flock
_wire, lfw_
start) == 0, " found %lld\n",
+ (long long)(int)offsetof(struct ldlm_flock
_wire, lfw_
start));
+ LASSERTF((int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
start) == 8, " found %lld\n",
+ (long long)(int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
start));
+ LASSERTF((int)offsetof(struct ldlm_flock
_wire, lfw_
end) == 8, " found %lld\n",
+ (long long)(int)offsetof(struct ldlm_flock
_wire, lfw_
end));
+ LASSERTF((int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
end) == 8, " found %lld\n",
+ (long long)(int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
end));
+ LASSERTF((int)offsetof(struct ldlm_flock
_wire, lfw_owner) == 16
, " found %lld\n",
+ (long long)(int)offsetof(struct ldlm_flock
_wire, lfw_owner
));
+ LASSERTF((int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_owner) == 8
, " found %lld\n",
+ (long long)(int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_owner
));
+ LASSERTF((int)offsetof(struct ldlm_flock
_wire, lfw_
pid) == 28, " found %lld\n",
+ (long long)(int)offsetof(struct ldlm_flock
_wire, lfw_
pid));
+ LASSERTF((int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
pid) == 4, " found %lld\n",
+ (long long)(int)sizeof(((struct ldlm_flock
_wire *)0)->lfw_
pid));
/* Checks for struct ldlm_inodebits */
LASSERTF((int)sizeof(struct ldlm_inodebits) == 8, " found %lld\n",