Whamcloud - gitweb
Add a new type, obd_uuid_t (char[37]) to replace uuid_t, which means
authoradilger <adilger>
Sat, 7 Sep 2002 07:58:52 +0000 (07:58 +0000)
committeradilger <adilger>
Sat, 7 Sep 2002 07:58:52 +0000 (07:58 +0000)
something different for the rest of the kernel and user-space too.
This should be used in all places where we specify char[37] directly.

I have the full change for this already implemented, but I'm going
slowly to avoid causing too many conflicts for Mike.

lustre/include/linux/lustre_idl.h

index f975ff1..38b1281 100644 (file)
@@ -47,7 +47,8 @@
 /*
  *  GENERAL STUFF
  */
-typedef __u8 uuid_t[37];
+typedef __u8 uuid_t[37]; /* deprecated */
+typedef __u8 obd_uuid_t[37];
 
 /* FOO_REQUEST_PORTAL is for incoming requests on the FOO
  * FOO_REPLY_PORTAL   is for incoming replies on the FOO
@@ -265,7 +266,7 @@ struct connmgr_body {
         __u64 conn;
         __u64 conn_token;
         __u32 generation;
-        __u8  conn_uuid[37];
+        obd_uuid_t conn_uuid;
 };
 
 /* request structure for OST's */
@@ -415,7 +416,7 @@ struct lov_desc {
         __u64 ld_default_stripe_size;      /* in bytes */
         __u64 ld_default_stripe_offset;    /* in bytes */
         __u32 ld_pattern;                  /* RAID 0,1 etc */
-         uuid_t ld_uuid;
+        uuid_t ld_uuid;
 }; 
 
 /*