[lvm-devel] [dm-devel] [PATCH] dm: introduce DM_GET_TARGET_VERSION

Christoph Hellwig hch at infradead.org
Tue Sep 17 06:32:42 UTC 2019


On Mon, Sep 16, 2019 at 08:16:41PM +0200, Milan Broz wrote:
> 
> So the main idea behind this was just use already existing functionality
> in kernel DM, and provide simple user-friendly way to detect some incompatibilites
> more early. If detection is not there, we just fallback to the old way.

Well, and the nice way to do that is to actually report the features,
not some arbitrary version number.  That is have a sysfs file (or
ioctl for dm if that is the way to go) that reports a list of
capabilities.  Then userspace checks for that desired capability and
only tries the feture if it is supported.




More information about the lvm-devel mailing list