Bug 31380

Summary: [nfs] NFS rootfs mount failure message too cryptic
Product: Base System Reporter: Dirk-Willem van Gulik <dirkx>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jpaetzel
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Dirk-Willem van Gulik 2001-10-19 19:50:00 UTC
in nfs/bootp_subr.c:

When setfs() fails during NFS mount of the root partition due to essentially a malformed root path string - then the error message
is simply

	panic("Failed to set rootfs to %s",p);

without any hint as to what the problem is.

Fix: 

Given that the message is only shown when setfs() fails - which really is by and large a syntax check function - a slightly more informative string would be really nice

	failed to set rootfs to '%s' - expect <ip>:/path syntax

or something.

Tx !

Dw
Comment 1 cel freebsd_committer freebsd_triage 2006-05-24 20:00:23 UTC
Responsible Changed
From-To: freebsd-bugs->cel
Comment 2 cel freebsd_committer freebsd_triage 2007-03-12 15:20:58 UTC
Responsible Changed
From-To: cel->freebsd-bugs

Back to the public pool.