]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: clarify that truncate creates sparse files
authorPádraig Brady <P@draigBrady.com>
Thu, 8 Aug 2019 12:31:41 +0000 (13:31 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 8 Aug 2019 12:34:54 +0000 (13:34 +0100)
* src/truncate.c (usage): Explicitly mention "sparse".
* doc/coreutils.texi (truncate invocation): Likewise.
Addresses https://bugs.gnu.org/36963

doc/coreutils.texi
src/truncate.c

index 42c0e36b887ff829ebcbd2e950d35b10dbfda01c..b552cc105702daa8e1f80cc7bc37be61640048af 100644 (file)
@@ -12593,8 +12593,8 @@ Any @var{file} that does not exist is created.
 @cindex sparse files, creating
 @cindex holes, creating files with
 If a @var{file} is larger than the specified size, the extra data is lost.
-If a @var{file} is shorter, it is extended and the extended part (or hole)
-reads as zero bytes.
+If a @var{file} is shorter, it is extended and the sparse extended part
+(or hole) reads as zero bytes.
 
 The program accepts the following options.  Also see @ref{Common options}.
 
index aa355123e4e5585feeb702fe88f671b840e52ab1..4494ab51a35d5aceb5a45af19335bd841d00f3ae 100644 (file)
@@ -74,7 +74,7 @@ Shrink or extend the size of each FILE to the specified size\n\
 A FILE argument that does not exist is created.\n\
 \n\
 If a FILE is larger than the specified size, the extra data is lost.\n\
-If a FILE is shorter, it is extended and the extended part (hole)\n\
+If a FILE is shorter, it is extended and the sparse extended part (hole)\n\
 reads as zero bytes.\n\
 "), stdout);