Re: [PATCH] RAID-6 check standalone

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

 



On Mon, 21 Mar 2011 12:54:41 +0100 Piergiorgio Sartor
<piergiorgio.sartor@xxxxxxxx> wrote:

> Hi Neil,
> 
> On Mon, Mar 21, 2011 at 10:04:57PM +1100, NeilBrown wrote:
> > On Mon, 21 Mar 2011 11:40:07 +0100 Piergiorgio Sartor
> > <piergiorgio.sartor@xxxxxxxx> wrote:
> > 
> > 
> > > > I have applied this patch to me git now - with some minor changes.
> > > 
> > > Thanks.
> > > 
> > > One question, I did not find the previous patch to "restripe.c",
> > > which was adding the ":offset" capability. This was in order to
> > > be able to cope with metadata 1.1 or 1.2 (offset to be determined).
> > 
> > I cannot seem to find it.  Please resend.
> 
> neither me, maybe I just forgot to send it.
> 
> Anyway, here below is the patch:
> 
> --- cut here ---
> 
> diff -urN a/restripe.c b/restripe.c
> --- a/restripe.c	2011-02-18 23:18:20.377740868 +0100
> +++ b/restripe.c	2011-02-18 23:30:07.589841525 +0100
> @@ -875,6 +875,14 @@
>  		exit(3);
>  	}
>  	for (i=0; i<raid_disks; i++) {
> +		char *p;
> +		p = strchr(argv[9+i], ':');
> +
> +		if(p != NULL) {
> +			*p++ = '\0';
> +			offsets[i] = atoll(p) * 512;
> +		}
> +			
>  		fds[i] = open(argv[9+i], O_RDWR);
>  		if (fds[i] < 0) {
>  			perror(argv[9+i]);
> 

OK, that's applied now.
thanks,
NeilBrown

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