From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: [[Patch mdadm] 4/5] When using -D --export the UUID is helpful, so print it out Date: Tue, 19 Jan 2010 11:03:23 +1300 Message-ID: <20100119110323.050bd061@notabene> References: <1263242294-5353-1-git-send-email-dledford@redhat.com> <1263242294-5353-5-git-send-email-dledford@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1263242294-5353-5-git-send-email-dledford@redhat.com> Sender: linux-raid-owner@vger.kernel.org Cc: linux-raid@vger.kernel.org, Doug Ledford List-Id: linux-raid.ids On Mon, 11 Jan 2010 15:38:13 -0500 Doug Ledford wrote: > Signed-off-by: Doug Ledford Already have this functionality since commit aae5a11207cf6da1682e6a76e116a19e21473f03 13Oct 2009. Thanks, NeilBrown > --- > Detail.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/Detail.c b/Detail.c > index ba07c83..e05ba10 100644 > --- a/Detail.c > +++ b/Detail.c > @@ -203,6 +203,11 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) > if (mp && mp->path && > strncmp(mp->path, "/dev/md/", 8) == 0) > printf("MD_DEVNAME=%s\n", mp->path+8); > + if (mp && (mp->uuid[0] || mp->uuid[1] || mp->uuid[2] || > + mp->uuid[3])) > + printf("MD_UUID=%08x:%08x:%08x:%08x\n", > + mp->uuid[0], mp->uuid[1], mp->uuid[2], > + mp->uuid[3]); > } > goto out; > }