Re: [[Patch mdadm] 4/5] When using -D --export the UUID is helpful, so print it out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 11 Jan 2010 15:38:13 -0500
Doug Ledford <dledford@xxxxxxxxxx> wrote:

> Signed-off-by: Doug Ledford <dledford@xxxxxxxxxx>

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;
>  	}

--
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux