From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#44273: "total used in directory 19 available 5.2 GiB" Date: Sat, 31 Oct 2020 00:47:11 -0400 Message-ID: References: <87sg9zgchl.5.fsf@jidanni.org> <87imarkinz.fsf@gnus.org> <83wnz7aoja.fsf@gnu.org> <87sg9vbzox.fsf@gmx.de> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jidanni@jidanni.org, larsi@gnus.org, 44273@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 05:48:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYioJ-0007OJ-5T for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 05:48:15 +0100 Original-Received: from localhost ([::1]:51288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYioI-00064W-8K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 00:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYio8-000647-I6 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 00:48:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYio6-0004es-Sp for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 00:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYio6-0006U4-RY for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 00:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2020 04:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix patch Original-Received: via spool by 44273-submit@debbugs.gnu.org id=B44273.160411964524862 (code B ref 44273); Sat, 31 Oct 2020 04:48:02 +0000 Original-Received: (at 44273) by debbugs.gnu.org; 31 Oct 2020 04:47:25 +0000 Original-Received: from localhost ([127.0.0.1]:60365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYinV-0006Sw-CG for submit@debbugs.gnu.org; Sat, 31 Oct 2020 00:47:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYinO-0006SG-EB for 44273@debbugs.gnu.org; Sat, 31 Oct 2020 00:47:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32988) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYinI-0004NT-TY; Sat, 31 Oct 2020 00:47:12 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kYinH-00041b-Fd; Sat, 31 Oct 2020 00:47:11 -0400 In-Reply-To: <87sg9vbzox.fsf@gmx.de> (message from Michael Albinus on Fri, 30 Oct 2020 14:39:26 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192234 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > An alternative would be to replace this line with a similar one, but > > in which the units are under our control, and can be spelled out. > This could decrease performance, because you need to calculate the size > of all files there. Think about a directory with several thousand > files, located remotely. And we don't have "du" for all Tramp backends. The efficient way to do this is to know what units ls uses for the total size, and convert that number to whatever unit is desired. We could easily make nsert-directory call a hook to reformat this information to delete it. So there is no need to treat this as a fight in which one side wins and others lose. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)