RE: [PATCH 1/9] MD: add a new disk role to present cache device

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

 



> -----Original Message-----
> From: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx]
> Sent: Tuesday, August 4, 2015 7:28 AM
> To: Shaohua Li
> Cc: linux-raid@xxxxxxxxxxxxxxx; Kernel Team; Song Liu; hch@xxxxxxxxxxxxx;
> dan.j.williams@xxxxxxxxx; neilb@xxxxxxx
> Subject: Re: [PATCH 1/9] MD: add a new disk role to present cache device
> 
> >  		case 0xfffe: /* faulty */
> >  			set_bit(Faulty, &rdev->flags);
> >  			break;
> > +		case 0xfffd: /* cache device */
> 
> Any chance to get constants for these magic numbers as an additional prep
> patch?
I will add patch for special roles (spare, faulty, cache, etc.). 


> 
> Also I don't really think that adding the role without the actual implementation
> is that useful.

Currently, we are planning to use 0xfffd for both "cache device" and 
"journal device" (fix write hole only). Would you prefer to separate these
two scenarios with two different roles (0xfffd and 0xfffc)?

Thanks,
Song

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