[et-mgmt-tools] [PATCH] virtinst: make hasFile not grab files

Cole Robinson crobinso at redhat.com
Tue Feb 5 20:56:06 UTC 2008


Cole Robinson wrote:
> The attached patch changes the implementation of hasFile from
> ImageFetcher classes to not actually acquire the file it
> is looking for, rather just test for its existence. http
> will use a HEAD request, local mounts will check the path,
> and ftp will query the size (which will work for files), 
> and if that fails will try to cd to the location.
> 
> I gave all the cases a test but I may be missing something,
> so if anyone has suggestions, please recommend :) This will
> be nice to have as it opens up some options, ex. quickly
> probing a tree for a paravirt kernel.
> 

I've committed this.

http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=96dd51a7e06b

- Cole




More information about the et-mgmt-tools mailing list