Whamcloud - gitweb
Land b_smallfix onto HEAD (20040512_1806)
[fs/lustre-release.git] / lustre / liblustre / tests / echo_test.c
index f2230ab..19fd83a 100644 (file)
@@ -24,6 +24,17 @@ struct obd_import;
 unsigned int portal_subsystem_debug = ~0 - (S_PORTALS | S_QSWNAL | S_SOCKNAL |
                                             S_GMNAL | S_IBNAL);
 
+void get_random_bytes(void *ptr, int size)
+{
+        char *p = ptr;
+
+        if (size < 1)
+                return;
+
+        while(size--)
+                *p++ = rand();
+}
+
 void *inter_module_get(char *arg)
 {
         if (!strcmp(arg, "tcpnal_ni"))
@@ -81,6 +92,11 @@ libcfs_nal_cmd(struct portals_cfg *pcfg)
         return 0;
 }
 
+int in_group_p(gid_t gid)
+{
+        return 0;
+}
+
 int init_current(int argc, char **argv)
 { 
         current = malloc(sizeof(*current));