From eb49f1d33514d8863c73ecd2f3e7cbf09f16bad3 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 5 Apr 2002 20:29:39 +0000 Subject: [PATCH] Ensure that the file type is valid. --- lustre/mds/mds_reint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 1d1cd59..cdaba15 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -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) { -- 1.8.3.1