Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Thu, 31 May 2007 21:37:37 +0000 (21:37 +0000)
committeradilger <adilger>
Thu, 31 May 2007 21:37:37 +0000 (21:37 +0000)
Return errors from ioctl(), unlike setup_obd_uuids().
b=11757
i=kalpak

lustre/utils/liblustreapi.c

index efb90e1..7fafd6f 100644 (file)
@@ -182,12 +182,8 @@ int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count)
         /* Get the lov name */
         rc = ioctl(fd, OBD_IOC_GETNAME, (void *) lov_name);
         if (rc) {
-                if (errno != ENOTTY) {
-                        rc = errno;
-                        err_msg("error: can't get lov name.");
-                } else {
-                        rc = 0;
-                }
+                rc = errno;
+                err_msg("error: can't get lov name.");
                 return rc;
         }