Whamcloud - gitweb
* first signs of life from newconfig tcpnal + liblustre echo_client
authoreeb <eeb>
Thu, 7 Jul 2005 17:48:33 +0000 (17:48 +0000)
committereeb <eeb>
Thu, 7 Jul 2005 17:48:33 +0000 (17:48 +0000)
lustre/liblustre/tests/echo_test.c
lustre/obdclass/class_obd.c

index b45f18e..a7ca2fb 100644 (file)
@@ -91,7 +91,8 @@ static int connect_echo_client(void)
        }
 
        /* attach osc */
-        lustre_cfg_bufs_reset(&bufs, LUSTRE_OSC_NAME);
+        lustre_cfg_bufs_reset(&bufs, osc_dev_name);
+        lustre_cfg_bufs_set_string(&bufs, 1, LUSTRE_OSC_NAME);
         lustre_cfg_bufs_set_string(&bufs, 2, osc_uuid_str.uuid);
         lcfg = lustre_cfg_new(LCFG_ATTACH, &bufs);
         err = class_process_config(lcfg);
index f4bb525..9d692d7 100644 (file)
@@ -176,8 +176,10 @@ int class_handle_ioctl(unsigned int cmd, unsigned long arg)
         int err = 0, len = 0;
         ENTRY;
 
+#ifdef __KERNEL__
         if (current->fsuid != 0)
                 RETURN(err = -EACCES);
+#endif
 
         if ((cmd & 0xffffff00) == ((int)'T') << 8) /* ignore all tty ioctls */
                 RETURN(err = -ENOTTY);