Date: Sun, 19 May 2002 00:41:44 +0100 From: Ian Dowse <iedowse@maths.tcd.ie> To: Terry Lambert <tlambert2@mindspring.com> Cc: Ian <freebsd@damnhippie.dyndns.org>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: df Message-ID: <200205190041.aa04845@salmon.maths.tcd.ie> In-Reply-To: Your message of "Sat, 18 May 2002 16:12:45 PDT." <3CE6DFED.8604C72C@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <3CE6DFED.8604C72C@mindspring.com>, Terry Lambert writes: >I think the reason for the "if" is to keep the df from hanging >indefinitely, particularly when you give it an explicit list. No, I believe the "if (vfslist != NULL)" code was there to reduce the maximum column widths to those necessary for an explicit list of filesystems rather than using the maximum widths for all filesystems. The regetmntinfo() call before the "if" has already performed any operations that could hang indefinitely, so it makes sense to unconditionally use these up-to-date results instead of the potentially stale list from getmntinfo(..., MNT_NOWAIT). Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205190041.aa04845>