From: D. Hugh Redelmeier Date: Thu, 27 Jun 2013 11:32:45 +0000 (+0100) Subject: doc: fix details on the interaction of df with device nodes X-Git-Tag: v8.22~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b90421a1bb27960679d180e40412d74b6ff3d0c;p=thirdparty%2Fcoreutils.git doc: fix details on the interaction of df with device nodes * man/df.x: Don't say that a dev node is always on the root file system. * doc/coreutils.texi (df invocation): Likewise. Also state that the device node to mounted file system interpretation is only done when passed absolute paths to device nodes. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index ae1081b1ac..b3233f602c 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -11023,14 +11023,12 @@ not shown per default when already the real root device has been mounted. @cindex disk device file @cindex device file, disk -If an argument @var{file} is a disk device file containing a mounted -file system, @command{df} shows the space available on that file system -rather than on the file system containing the device node (i.e., the root -file system). GNU @command{df} does not attempt to determine the -disk usage +If an argument @var{file} is an absolute name of a disk device node containing +a mounted file system, @command{df} shows the space available on that +file system rather than on the file system containing the device node. +GNU @command{df} does not attempt to determine the disk usage on unmounted file systems, because on most kinds of systems doing so -requires extremely nonportable intimate knowledge of file system -structures. +requires extremely nonportable intimate knowledge of file system structures. The program accepts the following options. Also see @ref{Common options}. diff --git a/man/df.x b/man/df.x index 7e908ae09a..c8889b42b1 100644 --- a/man/df.x +++ b/man/df.x @@ -21,8 +21,7 @@ If an argument is the absolute file name of a disk device node containing a mounted file system, .B df shows the space available on that file system rather than on the -file system containing the device node (which is always the root -file system). This version of +file system containing the device node. This version of .B df cannot show the space available on unmounted file systems, because on most kinds of systems doing so requires very nonportable intimate