From: shadow Date: Tue, 5 Aug 2008 09:05:43 +0000 (+0000) Subject: don't fail open with -ERANGE. X-Git-Tag: v1_7_72~1^124~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=797ee885cd0adde38be8074d93b24a20c6f541f4;p=fs%2Flustre-release.git don't fail open with -ERANGE. if client connected until mds will be know about real ost count, getting LOV EA can be fail because mds not allocate enougth buffer for LOV EA. Branch b1_8_gate b=16080 i=tappro i=johann --- diff --git a/lustre/mds/mds_internal.h b/lustre/mds/mds_internal.h index f8c6ee3..f1407f9 100644 --- a/lustre/mds/mds_internal.h +++ b/lustre/mds/mds_internal.h @@ -229,6 +229,7 @@ int mds_lov_connect(struct obd_device *obd, char * lov_name); int mds_lov_disconnect(struct obd_device *obd); int mds_lov_write_objids(struct obd_device *obd); +int mds_lov_prepare_objids(struct obd_device *obd, struct lov_mds_md *lmm); void mds_lov_update_objids(struct obd_device *obd, struct lov_mds_md *lmm); int mds_lov_clear_orphans(struct mds_obd *mds, struct obd_uuid *ost_uuid);