Re: [PATCH] raid6check.c add page size check and repair

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

 



On Mon, 20 Jan 2014 20:10:22 +0100 Piergiorgio Sartor
<piergiorgio.sartor@xxxxxxxx> wrote:

> Hi again,
> 
> I'm polluting the mailing list now... Sorry!
> 
> I found a couple of really stupid bugs, so this
> re-re-patch should fix them.
> 
> Sorry for the noise.
> 

Hi,
 I've applied that patch - it looks believable.

However:
1/ If you could try putting a description of what the patch does, and why, at
the top, that would help a lot.
See  http://www.ozlabs.org/~akpm/stuff/tpp.txt

2/  I'm not really happy about:
> @@ -217,26 +231,31 @@ int check_stripes(struct mdinfo *info, i
>  		block_index_for_slot[diskP] = data_disks;
>  		blocks[data_disks+1] = stripes[diskQ];
>  		block_index_for_slot[diskQ] = data_disks+1;
> -
> +/* Do we really need the code below? */
> +#if 0
>  		if (memcmp(p, stripes[diskP], chunk_size) != 0) {
>  			printf("P(%d) wrong at %llu\n", diskP, start);
>  		}
>  		if (memcmp(q, stripes[diskQ], chunk_size) != 0) {
>  			printf("Q(%d) wrong at %llu\n", diskQ, start);
>  		}
> +#endif


If you think it should be removed, then delete it completely.  It will still
exist in the git history so they is no really loss of code.
If you aren't sure, then don't delete it at all.  Ask.  Explain your thinking
and seek opinions.
In either case it should be in a separate patch.
I've left the "#if 0" etc for now but if you could push through to a
resolution and send a patch I would appreciate it.

Thanks,
NeilBrown

Attachment: signature.asc
Description: PGP signature


[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