Metadata_version is needed for: Deciding if metadata type is container-based - more than just the utime check depends on it Getting parent container number from subarrays - for linking subarrays with containers Obtaining superswitch - to avoid calling guess_super when we already know the kind of metadata Introducing utime_valid flag would just duplicate part of information included in metadata_version. Regards Anna -----Original Message----- From: Williams, Dan J Sent: Friday, November 05, 2010 6:47 AM To: Czarnowska, Anna Cc: Neil Brown; linux-raid@xxxxxxxxxxxxxxx; Neubauer, Wojciech; Ciechanowski, Ed; Labun, Marcin; Hawrylewicz Czarnowski, Przemyslaw Subject: Re: [PATCH 09/17] Monitor: avoid skipping checks on external arays On 10/29/2010 7:23 AM, Czarnowska, Anna wrote: > From bb9ca6dbe0a92e00b21cd8985533b561b40ed6b9 Mon Sep 17 00:00:00 2001 > From: Anna Czarnowska<anna.czarnowska@xxxxxxxxx> > Date: Mon, 25 Oct 2010 11:30:43 +0200 > Subject: [PATCH 09/17] Monitor: avoid skipping checks on external arays > > utime is not correct for external metadata so we can only > skip further checks for native metadata > > Signed-off-by: Anna Czarnowska<anna.czarnowska@xxxxxxxxx> > --- > Monitor.c | 33 ++++++++++++++++++++++++++------- > 1 files changed, 26 insertions(+), 7 deletions(-) > > diff --git a/Monitor.c b/Monitor.c > index a4bfedd..d915d7d 100644 > --- a/Monitor.c > +++ b/Monitor.c > @@ -50,6 +50,7 @@ struct state { > int devstate[MaxDisks]; > unsigned devid[MaxDisks]; > int percent; > + char *metadata_version; Another small nit... this is really just a "int utime_valid" flag, calling it "char *metadata_version" is a slightly confusing shortcut. --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. z siedziba w Gdansku ul. Slowackiego 173 80-298 Gdansk Sad Rejonowy Gdansk Polnoc w Gdansku, VII Wydzial Gospodarczy Krajowego Rejestru Sadowego, numer KRS 101882 NIP 957-07-52-316 Kapital zakladowy 200.000 zl This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html