From 64989076ac1255502c696d5f2a68a0be184fc3bb Mon Sep 17 00:00:00 2001
From: adilger <adilger>
Date: Thu, 31 May 2007 21:37:37 +0000
Subject: [PATCH] Branch b1_6 Return errors from ioctl(), unlike
 setup_obd_uuids(). b=11757 i=kalpak

---
 lustre/utils/liblustreapi.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c
index efb90e173b..7fafd6fc83 100644
--- a/lustre/utils/liblustreapi.c
+++ b/lustre/utils/liblustreapi.c
@@ -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;
         }
 
-- 
GitLab