FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 08-29-2011, 06:36 PM
"Brian C. Lane"
 
Default iscsi: with ibft, wait for link with waitForLink(). (#727774)

On Mon, Aug 29, 2011 at 03:35:14PM +0200, Ales Kozumplik wrote:
> ---
> loader2/net.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/loader2/net.c b/loader2/net.c
> index 9e5733d..ee63154 100644
> --- a/loader2/net.c
> +++ b/loader2/net.c
> @@ -2300,8 +2300,7 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) {
> devmacaddr = nl_mac2str(devices[i]);
> if(!strcasecmp(devmacaddr, ibftmacaddr)){
> logMessage(INFO, "%s has the right MAC (%s), checking for link", devmacaddr, devices[i]);
> - free(devmacaddr);
> - if(get_link_status(devices[i]) == 1){
> + if (!waitForLink(devices[i])) {
> lookForLink = 0;
> loaderData->netDev = devices[i];
> logMessage(INFO, "%s has link, using it", devices[i]);
> @@ -2320,8 +2319,8 @@ int chooseNetworkInterface(struct loaderData_s * loaderData) {
> }
> else{
> logMessage(DEBUGLVL, "%s (%s) is not it...", devices[i], devmacaddr);
> - free(devmacaddr);
> }
> + free(devmacaddr);
> }
>
> break;
> --
> 1.7.6

Ack

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org