Whamcloud - gitweb
LU-1842 quota: new quota RPC format
[fs/lustre-release.git] / lustre / utils / wiretest.c
index 16de235..4e6f36a 100644 (file)
@@ -62,8 +62,8 @@ void lustre_assert_wire_constants(void)
 {
         /* Wire protocol assertions generated by 'wirecheck'
          * (make -C lustre/utils newwiretest)
-         * running on Linux node7 2.6.32 #4 SMP Tue Aug 7 13:09:55 MSK 2012 x86_64 x86_64 x86_64 GNU/
-         * with gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)  */
+         * running on Linux rhel6 2.6.32 #1 SMP Mon Aug 20 00:36:28 EDT 2012 x86_64 x86_64 x86_64 GNU
+         * with gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)  */
 
 
         /* Constants... */
@@ -1532,9 +1532,9 @@ void lustre_assert_wire_constants(void)
         LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt) == 4, "found %lld\n",
                  (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt));
 
-       /* Checks for union lquota_id */
-       LASSERTF((int)sizeof(union lquota_id) == 16, "found %lld\n",
-                (long long)(int)sizeof(union lquota_id));
+        /* Checks for union lquota_id */
+        LASSERTF((int)sizeof(union lquota_id) == 16, "found %lld\n",
+                 (long long)(int)sizeof(union lquota_id));
 
         /* Checks for struct obd_quotactl */
         LASSERTF((int)sizeof(struct obd_quotactl) == 112, "found %lld\n",
@@ -3592,6 +3592,50 @@ void lustre_assert_wire_constants(void)
         LASSERTF((int)sizeof(((struct qunit_data *)0)->padding) == 8, "found %lld\n",
                  (long long)(int)sizeof(((struct qunit_data *)0)->padding));
 
+        /* Checks for struct quota_body */
+        LASSERTF((int)sizeof(struct quota_body) == 112, "found %lld\n",
+                 (long long)(int)sizeof(struct quota_body));
+        LASSERTF((int)offsetof(struct quota_body, qb_fid) == 0, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_fid));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_fid) == 16, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_fid));
+        LASSERTF((int)offsetof(struct quota_body, qb_id) == 16, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_id));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_id) == 16, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_id));
+        LASSERTF((int)offsetof(struct quota_body, qb_flags) == 32, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_flags));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_flags) == 4, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_flags));
+        LASSERTF((int)offsetof(struct quota_body, qb_padding) == 36, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_padding));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_padding) == 4, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_padding));
+        LASSERTF((int)offsetof(struct quota_body, qb_count) == 40, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_count));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_count) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_count));
+        LASSERTF((int)offsetof(struct quota_body, qb_usage) == 48, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_usage));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_usage) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_usage));
+        LASSERTF((int)offsetof(struct quota_body, qb_slv_ver) == 56, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_slv_ver));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_slv_ver) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_slv_ver));
+        LASSERTF((int)offsetof(struct quota_body, qb_lockh) == 64, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_lockh));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_lockh) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_lockh));
+        LASSERTF((int)offsetof(struct quota_body, qb_glb_lockh) == 72, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_glb_lockh));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_glb_lockh) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_glb_lockh));
+        LASSERTF((int)offsetof(struct quota_body, qb_padding1[4]) == 112, "found %lld\n",
+                 (long long)(int)offsetof(struct quota_body, qb_padding1[4]));
+        LASSERTF((int)sizeof(((struct quota_body *)0)->qb_padding1[4]) == 8, "found %lld\n",
+                 (long long)(int)sizeof(((struct quota_body *)0)->qb_padding1[4]));
+
         /* Checks for struct quota_adjust_qunit */
         LASSERTF((int)sizeof(struct quota_adjust_qunit) == 32, "found %lld\n",
                  (long long)(int)sizeof(struct quota_adjust_qunit));