From b0a8a4e199016d7de05ddff13fc135e5bd64f8af Mon Sep 17 00:00:00 2001 From: shadow Date: Tue, 5 Aug 2008 09:05:40 +0000 Subject: [PATCH] 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 --- lustre/include/obd.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index e72d155..95bd4cd 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -529,6 +529,8 @@ struct mds_obd { mds_fl_acl:1, mds_fl_cfglog:1, mds_fl_synced:1, + mds_fl_target:1, /* mds have one or + * more targets */ mds_evict_ost_nids:1; uid_t mds_squash_uid; @@ -789,8 +791,9 @@ enum obd_notify_event { OBD_NOTIFY_CONFIG }; -#define CONFIG_LOG 0x1 /* finished processing config log */ -#define CONFIG_SYNC 0x2 /* mdt synced 1 ost */ +#define CONFIG_LOG 0x1 /* finished processing config log */ +#define CONFIG_SYNC 0x2 /* mdt synced 1 ost */ +#define CONFIG_TARGET 0x4 /* one target is added */ /* * Data structure used to pass obd_notify()-event to non-obd listeners (llite -- 1.8.3.1