From: nathan Date: Tue, 7 Feb 2006 00:59:59 +0000 (+0000) Subject: Branch b1_4_mountconf X-Git-Tag: v1_8_0_110~486^4~54 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=278fe70c1f7537cdbfded6164427a3cd70b46211;p=fs%2Flustre-release.git Branch b1_4_mountconf b=9861 mballoc/extents prevent plain-ext3 pre-mount. So if pre-mount ext3 fails, try ldiskfs pre-mount. --- diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 931f435..97c4374 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1106,8 +1106,14 @@ static struct vfsmount *server_kernel_mount(struct super_block *sb) mnt = do_kern_mount("ext3", s_flags, lmd->lmd_dev, 0); if (IS_ERR(mnt)) { rc = PTR_ERR(mnt); - CERROR("premount failed: rc = %d\n", rc); - GOTO(out_free, rc); + CERROR("premount ext3 failed (%d), trying ldiskfs\n", rc); + /* If ext3 fails (bec. of mballoc, extents), try ldiskfs */ + mnt = do_kern_mount("ldiskfs", s_flags, lmd->lmd_dev, 0); + if (IS_ERR(mnt)) { + rc = PTR_ERR(mnt); + CERROR("premount ldiskfs failed: rc = %d\n", rc); + GOTO(out_free, rc); + } } OBD_SET_CTXT_MAGIC(&mount_ctxt);