Hello Zheng,

Monday, October 13, 2014, 10:45:37 AM, you wrote:

> Yes, detaching a backing device will make all dirty data to be written
> back to the backing device.  But if I understand correctly it couldn't
> invalidate all data in cache device.  That means that after attaching
> backing device the data in cache device is still valid.

It  would  be  a  bug if cached data were considered valid after detaching and
re-attaching. Because while a cache device an a backing device were separated,
data  could be written to a backing device, this would possibly make data in a
"disconnected" cache obsolete.

Pavel Goran
  

--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to