From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6995: 24.0.50; get-free-disk-space doesn't return available space in dired Date: Mon, 13 Sep 2010 08:56:19 +0200 Message-ID: <83aanm5dyk.fsf@gnu.org> References: <87d3sp5olh.fsf@tux.homenetwork> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284361840 27925 80.91.229.12 (13 Sep 2010 07:10:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 07:10:40 +0000 (UTC) Cc: 6995@debbugs.gnu.org, thierry.volpiatto@gmail.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 13 09:10:37 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov3BR-0003l1-O7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 09:10:34 +0200 Original-Received: from localhost ([127.0.0.1]:51941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov3BR-0001VP-2X for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 03:10:33 -0400 Original-Received: from [140.186.70.92] (port=41418 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov3BM-0001VH-0R for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 03:10:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov3BK-0002vp-Lk for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 03:10:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44562) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov3BK-0002vl-IW for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 03:10:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ov2wQ-0008RA-7u; Mon, 13 Sep 2010 02:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Sep 2010 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6995-submit@debbugs.gnu.org id=B6995.128436085232419 (code B ref 6995); Mon, 13 Sep 2010 06:55:02 +0000 Original-Received: (at 6995) by debbugs.gnu.org; 13 Sep 2010 06:54:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov2vc-0008Qq-4A for submit@debbugs.gnu.org; Mon, 13 Sep 2010 02:54:12 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov2vZ-0008Qk-8j for 6995@debbugs.gnu.org; Mon, 13 Sep 2010 02:54:10 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L8O00300B81P300@a-mtaout22.012.net.il> for 6995@debbugs.gnu.org; Mon, 13 Sep 2010 08:56:19 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.81.53]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8O003NLB9UA340@a-mtaout22.012.net.il>; Mon, 13 Sep 2010 08:56:19 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Sep 2010 02:55:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40119 Archived-At: > From: Glenn Morris > Date: Tue, 07 Sep 2010 16:36:01 -0400 > Cc: 6995@debbugs.gnu.org > > df -Pk /home/user > > returns > > Filesystem 1024-blocks Used Available Capacity Mounted on > /real_directory/home/user 461097104 333392304 127704800 73% /home/user > > Because the filesystem name is long, the numerical values do not line > up with the column headings. The current code seems to assume that > they do line up. Thus, running dired on "~" gets wrong values for the > total size. How about dropping the use of `df', at least on GNU/Linux? It's IMO ridiculous to invoke an external program for a single system call. I know that this system call is notoriously non-portable, and that doing in Emacs all that system-dependent stuff that `df' does is not a good idea. But at least on the most popular free system (and perhaps on a few compatible ones) we could do it right without all that labor, and gain stability and reliability that depending on `df' will never achieve.