]> git.baikalelectronics.ru Git - kernel.git/commit
dm ioctl: report event number in DM_LIST_DEVICES
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 16 Jan 2017 21:07:01 +0000 (16:07 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 19 Jun 2017 15:03:50 +0000 (11:03 -0400)
commit574ed81b75565a87a802b3bec9d7d27867451974
tree790860981a8c8ea5a72cca9407117974419c1ae3
parenta8494da00fe988ef8e33eff44763046214410495
dm ioctl: report event number in DM_LIST_DEVICES

Report the event numbers for all the devices, so that the user doesn't
have to ask them one by one.  The event number is reported after the
name field in the dm_name_list structure.

The location of the next record is specified in the dm_name_list->next
field, that means that we can put the new data after the end of name and
it is backward compatible with the old code.  The old code just skips
the event number without interpreting it.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c