Whamcloud - gitweb
Ensure that the file type is valid.
authoradilger <adilger>
Fri, 5 Apr 2002 20:29:39 +0000 (20:29 +0000)
committeradilger <adilger>
Fri, 5 Apr 2002 20:29:39 +0000 (20:29 +0000)
lustre/mds/mds_reint.c

index 1d1cd59..cdaba15 100644 (file)
@@ -134,6 +134,9 @@ static int mds_reint_create(struct mds_update_record *rec,
                 EXIT;
                 break;
         }
+        default:
+                CERROR("bad file type %d for create of %s\n",type,rec->ur_name);
+                GOTO(out_reint_create, rc = -EINVAL);
         }
 
         if (rc) {