On Fri, May 18, 2012 at 9:52 AM, Doug Ledford <dledford@xxxxxxxxxx> wrote: > On 5/11/2012 3:46 PM, Dan Williams wrote: >> "Backing >> device" vs "cache device" is determined by slot number whereby the >> backing device slot is the highest number index. > > That needs fixing. We used to do things by slot number long ago, and it > turned out to create lots of races on reconfiguring slot indexes and > moving devices around on rebuilds and stuff like that. I would have to > see us undo that fix when it comes to bcache. Yeah, that hack should be easy to remove and userspace can look at the sysfs attributes to determine the device's role. -- Dan -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html