Re: [PATCH 7/8] virHostdevPrepareSCSIVHostDevices: Simplify logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 18, 2019 at 03:04:26PM +0200, Michal Privoznik wrote:
Couple of things happening in this patch:

1) We can mark the device we're adding onto active list as used
  way before - when adding it onto temporary list.

2) When actually moving device from a temporary helper list onto
  the list of active devices we check if the device isn't
  already there. The same check is performed by
  virSCSIVHostDeviceListAdd() later. Drop this duplicity.

3) The 'error' label is renamed to 'rollback' to reflect what it
  is actually doing. While in the rest of the code we don't
  allow random label names, this source file is different.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
src/util/virhostdev.c | 41 ++++++++++++++++-------------------------
1 file changed, 16 insertions(+), 25 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux