Whamcloud - gitweb
LU-13107 utils: remove lctl lov_getconfig command
[fs/lustre-release.git] / lustre / lov / lov_obd.c
index e8c8301..762e20a 100644 (file)
@@ -953,7 +953,6 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
        struct obd_device *obd = class_exp2obd(exp);
        struct lov_obd *lov = &obd->u.lov;
        int i = 0, rc = 0, count = lov->desc.ld_tgt_count;
-       struct obd_uuid *uuidp;
 
        ENTRY;
        switch (cmd) {
@@ -1003,48 +1002,6 @@ static int lov_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                        RETURN(-EFAULT);
                break;
         }
-       case OBD_IOC_LOV_GET_CONFIG: {
-               struct obd_ioctl_data *data = NULL;
-               struct lov_desc *desc;
-               __u32 *genp;
-
-               len = 0;
-               if (obd_ioctl_getdata(&data, &len, uarg))
-                       RETURN(-EINVAL);
-
-               if (sizeof(*desc) > data->ioc_inllen1) {
-                       OBD_FREE_LARGE(data, len);
-                       RETURN(-EINVAL);
-               }
-
-               if (sizeof(uuidp->uuid) * count > data->ioc_inllen2) {
-                       OBD_FREE_LARGE(data, len);
-                       RETURN(-EINVAL);
-               }
-
-               if (sizeof(__u32) * count > data->ioc_inllen3) {
-                       OBD_FREE_LARGE(data, len);
-                       RETURN(-EINVAL);
-               }
-
-               desc = (struct lov_desc *)data->ioc_inlbuf1;
-               memcpy(desc, &lov->desc, sizeof(*desc));
-
-               uuidp = (struct obd_uuid *)data->ioc_inlbuf2;
-               genp = (__u32 *)data->ioc_inlbuf3;
-               /* the uuid will be empty for deleted OSTs */
-               for (i = 0; i < count; i++, uuidp++, genp++) {
-                       if (!lov->lov_tgts[i])
-                               continue;
-                       *uuidp = lov->lov_tgts[i]->ltd_uuid;
-                       *genp = lov->lov_tgts[i]->ltd_gen;
-               }
-
-               if (copy_to_user(uarg, data, len))
-                       rc = -EFAULT;
-               OBD_FREE_LARGE(data, len);
-               break;
-       }
         case OBD_IOC_QUOTACTL: {
                 struct if_quotactl *qctl = karg;
                 struct lov_tgt_desc *tgt = NULL;