Ian Dowse wrote:
> In message <[EMAIL PROTECTED]>, 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).
Like "ps", "df" is a snapshot.
As such, "staleness" after a few tenths of a second is really
irrelevent, since the information is never really "the real
and precise information".
It's more important to be able to get information in a misbehaving
system, without hanging your shell forever. 8-(.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message