From 5abe91ef3ecf79646b22fe39f11c7a5bec2f94b1 Mon Sep 17 00:00:00 2001
From: anserper <anserper>
Date: Sun, 8 Jun 2008 16:46:13 +0000
Subject: [PATCH] Branch b1_6 b=15779 i=Johann i=ZhiYong

Do not LBUG when different versions of lquota.ko and fsfilt_ldiskfs.ko used
---
 lustre/lvfs/fsfilt_ext3.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c
index d134000e6f..d0e1f88e8f 100644
--- a/lustre/lvfs/fsfilt_ext3.c
+++ b/lustre/lvfs/fsfilt_ext3.c
@@ -2085,8 +2085,10 @@ static int fsfilt_ext3_quotainfo(struct lustre_quota_info *lqi, int type,
                 rc = lustre_quota_convert(lqi, type);
                 break;
         default:
-                CERROR("Unsupported admin quota file cmd %d\n", cmd);
-                LBUG();
+                rc = -ENOTSUPP;
+                CERROR("Unsupported admin quota file cmd %d\n"
+                       "Are lquota.ko and fsfilt_ldiskfs.ko modules in sync?\n",
+                       cmd);
                 break;
         }
         RETURN(rc);
-- 
GitLab