Whamcloud - gitweb
LU-4923 osd-ldiskfs: dirdata is not needed on MGS 61/32961/4
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 29 Sep 2017 21:25:04 +0000 (15:25 -0600)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 11 Sep 2018 22:17:55 +0000 (22:17 +0000)
Don't print a warning message if the "dirdata" feature is not enabled
on MGS devices.  It is only needed for ldiskfs MDT devices.

Lustre-commit: 383ef1a93b67778704c009aa3c1b0e2c15a5bb76
Lustre-change: https://review.whamcloud.com/29274

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I1d8ccfc9c60eff128b480ea8efa298c1212c041a
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/32961
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c

index 6a03b06..a0274c1 100644 (file)
@@ -7044,7 +7044,7 @@ static int osd_mount(const struct lu_env *env,
        if (LDISKFS_HAS_INCOMPAT_FEATURE(o->od_mnt->mnt_sb,
                                         LDISKFS_FEATURE_INCOMPAT_DIRDATA))
                LDISKFS_SB(osd_sb(o))->s_mount_opt |= LDISKFS_MOUNT_DIRDATA;
-       else if (!o->od_is_ost)
+       else if (strstr(name, "MDT")) /* don't complain for MGT or OSTs */
                CWARN("%s: device %s was upgraded from Lustre-1.x without "
                      "enabling the dirdata feature. If you do not want to "
                      "downgrade to Lustre-1.x again, you can enable it via "