On Fri, Jan 11, 2019 at 07:44:38AM -0500, John Ferlan wrote:
On 1/11/19 3:26 AM, Ján Tomko wrote:On Thu, Jan 10, 2019 at 06:40:33PM -0500, John Ferlan wrote:It's essentially dead code. The only way hostdev->shareable can be true is during virDomainHostdevDefParseXML when the result of virHostdevIsSCSIDevice is true.While this might be true in our current codebase, I don't think this function should rely on the callers to only fill in hostdev->shareable for VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI to guard its usage of the hostdev->source union. JanoOK - I guess I was trying to be "compete" and partially considering that there's no reason this method wouldn't work for other hostdev types (PCI, USB, SCSI_HOST, MDEV) beyond of course the fact that for those types virDomainHostdevDefParseXML doesn't parse the readonly and shareable subelements. It's also not named qemuIsShareSCSIHostdev, but it does filter on SCSI. Still the first patch ends up being the fix and I separated them because I wasn't sure and figured I'd take another opinion on it! Should I "assume" patch1 is SFF...
Yes, Jano
signature.asc
Description: PGP signature
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list