From: Wolfgang Denk Date: Mon, 07 Dec 2009 22:02:36 +0100 Subject: [U-Boot] [PATCH] nfs: NfsTimeout() updates In-Reply-To: <1257818916-30673-1-git-send-email-ptyser@xes-inc.com> References: <1257818916-30673-1-git-send-email-ptyser@xes-inc.com> Message-ID: <20091207210236.D0D4A3F6CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Tyser, In message <1257818916-30673-1-git-send-email-ptyser@xes-inc.com> you wrote: > From: Evan Samanas > > - NfsTimeout() does not correctly update the NFS timeout value which > results in NfsTimeout() only being called once in certain situations. > This can result in the 'nfs' command hanging indefinetly. For > example, the command: > > nfs 192.168.0.1:/home/user/file > > will not exit until ctrl-c is pressed if 192.168.0.1 does not have an > NFS server running. > > This issue is resolved by reinitializting the NFS timeout value inside > NfsTimeout() when a timeout occurs. > > - Make the 'nfs' command print the 'T' character when a timeout occurs. > Previously there was no indication that timeouts were occuring. > > - Mimic the 'tftpboot' command and when a download fails print "Retry > count exceeded; starting again", and restart the download taking the > 'netretry' environment variable into account. > > Signed-off-by: Evan Samanas > Signed-off-by: Peter Tyser Tested on TQM8xxL. Tested by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I've got a bad feeling about this.