I notice that the meta and data device of thin pool has to be a linear dev for now. I test locally on my machine, that directly pass a loop device to dmsetup command to create a thin pool is fine.
I also find a related issure #52 many years ago, but seems without any further updates.
I wonder, at least, if is it possible to use lookback device directly, as meta and data device of thin pool for devicemapper-rs. I doubt whether create a linear device based on loopback device maybe:
- Add latency during create? Of course, creating the thin-pool might not be too frequent, so this might not be a big problem.
- Performance penalty of creating linear device on loopback device? (I do not test it, but I concern it might be a problem?)
I notice that the meta and data device of thin pool has to be a linear dev for now. I test locally on my machine, that directly pass a loop device to
dmsetupcommand to create a thin pool is fine.I also find a related issure #52 many years ago, but seems without any further updates.
I wonder, at least, if is it possible to use lookback device directly, as meta and data device of thin pool for devicemapper-rs. I doubt whether create a linear device based on loopback device maybe: