From owner-freebsd-stable@FreeBSD.ORG Tue Nov 11 10:55:37 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3296E106567F for ; Tue, 11 Nov 2008 10:55:37 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0A48FC1C for ; Tue, 11 Nov 2008 10:55:36 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id mABAtUPk094826; Tue, 11 Nov 2008 11:55:30 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id mABAtU0T094825; Tue, 11 Nov 2008 11:55:30 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 11 Nov 2008 11:55:30 +0100 From: Ruben de Groot To: Willem Jan Withagen Message-ID: <20081111105530.GA94707@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Willem Jan Withagen , freebsd-stable@freebsd.org References: <49185ABC.6080004@earthlink.net> <20081110162111.GA26951@svzserv.kemerovo.su> <20081111080321.GA94210@ei.bzerk.org> <49194EE2.7060708@IMAP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49194EE2.7060708@IMAP> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ei.bzerk.org [127.0.0.1]); Tue, 11 Nov 2008 11:55:33 +0100 (CET) Cc: freebsd-stable@freebsd.org Subject: Re: du and df don't agree X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 10:55:37 -0000 On Tue, Nov 11, 2008 at 10:22:42AM +0100, Willem Jan Withagen typed: > Ruben de Groot wrote: > >On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed: > >>On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote: > >> > >>>Why would du show 630k used by /tmp while df show 161M used > >>>by /tmp? > >>> > >>>I have run fstat /tmp and can't find any files that are using > >>>the space that df is claiming as being used. > >>You need lsof +aL1 /tmp to see an answer. > > > >Please don't advise people to install third party apps (lsof) where > >base system tools (fstat) can do the job. > > Why not? Because it gives the impression the base system is incomplete, which it is not, at least not in this situation. The wording "you need lsof" is plain wrong. > This is one of the ways I pick up on all kinds of nice tools I've not heard > of before. And it is not like this is swamping the list with of topic > questions. Difference of opinion; I prefer to use FreeBSD tools before falling back to 3rd party tools, no matter how nice. > You might have redirected the question to questions@ I don't see the point. Why didn't you redirect it? > OTOH > The initial question indicated that fstat did not give the info wanted. > Your info does not help, because you told him to use fstat, but forgot to > mention HOW. So he is in no way any wiser after your answer. Yes, my bad. But he allready found the answer himself (using fstat -f I guess). Ruben