Re: [dm-devel] [PATCH v2] dm-ioctl: return UUID in DM_LIST_DEVICES_CMD result

2021-03-11 Thread Mike Snitzer
On Thu, Mar 11 2021 at 2:43pm -0500, Mikulas Patocka wrote: > > > On Thu, 11 Mar 2021, Mike Snitzer wrote: > > > > Index: linux-2.6/include/uapi/linux/dm-ioctl.h > > > === > > > --- linux-2.6.orig/include/uapi/linux/dm-ioctl.h

Re: [dm-devel] [PATCH v2] dm-ioctl: return UUID in DM_LIST_DEVICES_CMD result

2021-03-11 Thread Mikulas Patocka
On Thu, 11 Mar 2021, Mike Snitzer wrote: > > Index: linux-2.6/include/uapi/linux/dm-ioctl.h > > === > > --- linux-2.6.orig/include/uapi/linux/dm-ioctl.h2021-03-09 > > 12:20:23.0 +0100 > > +++

Re: [dm-devel] [PATCH v2] dm-ioctl: return UUID in DM_LIST_DEVICES_CMD result

2021-03-11 Thread Mike Snitzer
On Thu, Mar 11 2021 at 1:26pm -0500, Mikulas Patocka wrote: > When LVM needs to find a device with a particular UUID it needs to ask for > UUID for each device. This patch returns UUID directly in the list of > devices, so that LVM doesn't have to query all the devices with an ioctl. > The UUID

[dm-devel] [PATCH v2] dm-ioctl: return UUID in DM_LIST_DEVICES_CMD result

2021-03-11 Thread Mikulas Patocka
When LVM needs to find a device with a particular UUID it needs to ask for UUID for each device. This patch returns UUID directly in the list of devices, so that LVM doesn't have to query all the devices with an ioctl. The UUID is returned if the flag DM_UUID_FLAG is set in the parameters.