/bin/df considered harmful.

Darrell Long darrell at midgard.ucsc.edu
Fri Feb 2 08:33:16 AEST 1990


A word of warning: /bin/df is capable of crashing SunOS.  Suppose
/dev/sd0b is your swap partition.  "df /dev/sd0b" will cause a crash.
Interestingly some processes will continue to run, such a the clock or a
perfmeter.  I think that what is happening is that the swap area is
getting corrupted and these processes are memory resident.

Of course, df is kind enough to tell you that /dev/sd0b isn't a UNIX file
system, but then it goes on to trash it anyway.

Regards, DL



More information about the Comp.sys.sun mailing list