doc: clarify that truncate creates sparse files

* src/truncate.c (usage): Explicitly mention "sparse".
* doc/coreutils.texi (truncate invocation): Likewise.
Addresses https://bugs.gnu.org/36963
This commit is contained in:
Pádraig Brady committed 2019-08-08 13:34:54 +01:00
1 parent eb5a9ebaf1
commit becf0db0da
2 files changed
+3 -3

No files matched your search

+2 -2
View 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}.
+1 -1
View 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);