From owner-freebsd-stable Tue Aug 11 02:18:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA05318 for freebsd-stable-outgoing; Tue, 11 Aug 1998 02:18:49 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA05308 for ; Tue, 11 Aug 1998 02:18:40 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id CAA01826; Tue, 11 Aug 1998 02:18:49 -0700 (PDT) Message-Id: <199808110918.CAA01826@implode.root.com> To: Morgan Davis cc: stable@FreeBSD.ORG Subject: Re: FP exception in df In-reply-to: Your message of "Tue, 11 Aug 1998 01:47:06 PDT." <199808110847.BAA02282@io.cts.com> From: David Greenman Reply-To: dg@root.com Date: Tue, 11 Aug 1998 02:18:48 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I noticed that swapinfo returns what looks exactly like a df entry but >for the swap device. Seeing as how this might be useful to aggregate >that information with one df command, I thought I'd add the swap >device to df's argument list. But this gives: > ># df /dev/sd0s1b >Filesystem 1K-blocks Used Avail Capacity Mounted on >Floating point exception > >Using the -t option doesn't seem to allow for an fstype of "swap". > >Of course, the work around is to get the desired result is: > > df; swapinfo | tail -1 > >which lines up everything nice and neat. Just seems that df should >(or might) be able to do this itself (or at least not throw an FP >exception). The information is displayed similarly, but the way that the system gets the info is entirely different - "swap" in FreeBSD isn't a filesystem. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message