GNU bug report logs -
#6995
24.0.50; get-free-disk-space doesn't return available space in dired
Previous Next
Full log
View this message in rfc822 format
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Tue, 07 Sep 2010 16:36:01 -0400
> Cc: 6995 <at> 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.
This bug report was last modified 14 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.