Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Thu, 25 Sep 2008 09:59:23 +0000 (09:59 +0000)
committeryangsheng <yangsheng>
Thu, 25 Sep 2008 09:59:23 +0000 (09:59 +0000)
b=16771
i=adilger, johann

Use fix size timestamp instead of time_t in the cfg_marker and keep
compitibility for old cfg_marker on 32bit system.

lustre/include/lustre/lustre_idl.h

index 7864acf..3bcc48e 100644 (file)
@@ -1705,13 +1705,14 @@ struct cfg_marker {
         __u32             cm_flags;
         __u32             cm_vers;       /* lustre release version number */
         __u32             padding;       /* 64 bit align */
-        time_t            cm_createtime; /*when this record was first created */
-        time_t            cm_canceltime; /*when this record is no longer valid*/
+        __u64             cm_createtime; /*when this record was first created */
+        __u64             cm_canceltime; /*when this record is no longer valid*/
         char              cm_tgtname[MTI_NAME_MAXLEN];
         char              cm_comment[MTI_NAME_MAXLEN];
 };
 
-extern void lustre_swab_cfg_marker(struct cfg_marker *marker);
+extern void lustre_swab_cfg_marker(struct cfg_marker *marker,
+                                   int swab, int size);
 
 /*
  * Opcodes for multiple servers.