dm ioctl: filter the returned values according to name or uuid prefix
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 11 Mar 2021 18:27:29 +0000 (13:27 -0500)
committerMike Snitzer <snitzer@redhat.com>
Fri, 26 Mar 2021 18:53:41 +0000 (14:53 -0400)
commitc909085bb319c97b7eccbce4dcbd47a32016e0f7
treef6019ee0d50293fa001d1d3dbad2eaca8fe99632
parent8b638081bd4520f63db1defc660666ec5f65bc15
dm ioctl: filter the returned values according to name or uuid prefix

If we set non-empty param->name or param->uuid on the DM_LIST_DEVICES_CMD
ioctl, the set values are considered filter prefixes. The ioctl will only
return entries with matching name or uuid prefix.

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