Whamcloud - gitweb
LU-3187 obdecho: always set o_id non-zero
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 10 May 2013 20:22:10 +0000 (14:22 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 20 May 2013 18:13:36 +0000 (14:13 -0400)
Always initialize the o_id field in obdecho requests so the server
doesn't get confused between o_id == 0 and f_seq == 0.  This isn't
strictly necessary for protocol correctness (the server assigns
the actual OID in the end), but makes life a bit easier for cross
compatibility with FID-on-OST.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ifc318333df97326fb33366cd9f06d33e3f5139bb
Reviewed-on: http://review.whamcloud.com/6319
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/obd.c

index 5946c5c..b2f12da 100644 (file)
@@ -1051,7 +1051,7 @@ int jt_obd_create(int argc, char **argv)
         char rawbuf[MAX_IOC_BUFLEN], *buf = rawbuf;
         struct obd_ioctl_data data;
         struct timeval next_time;
-        __u64 count = 1, next_count, base_id = 0;
+        __u64 count = 1, next_count, base_id = 1;
         int verbose = 1, mode = 0100644, rc = 0, i, valid_lsm = 0;
         char *end;