[newlib-cygwin/main] Cygwin: faq: add lssparse to sparse file example
Christian Franke
chrfranke@sourceware.org
Tue Apr 8 15:55:37 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d29943e56dc5e30e219b7da114b0b0c31acd8cbc
commit d29943e56dc5e30e219b7da114b0b0c31acd8cbc
Author: Christian Franke <christian.franke@t-online.de>
Date: Tue Apr 8 13:34:02 2025 +0200
Cygwin: faq: add lssparse to sparse file example
Signed-off-by: Christian Franke <christian.franke@t-online.de>
Diff:
---
winsup/doc/faq-using.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml
index e5e4479f5..111702c6f 100644
--- a/winsup/doc/faq-using.xml
+++ b/winsup/doc/faq-using.xml
@@ -855,6 +855,11 @@ possible to preset the sparse attribute with <literal>chattr</literal>.
---a-S-------- 2/is_sparse
---a-S-------- 2/maybe_sparse
---a-S-------- 2/not_sparse
+ $ lssparse -H 0/is_sparse # from cygutils-extra package
+ Hole range[1]: offset=0x0, length=0x100000
+ Data range[2]: offset=0x100000, length=0x4
+ $ lssparse -H 0/not_sparse
+ Data range[1]: offset=0x0, length=0x100004
</screen>
<para>With <literal>sparse</literal> mount option or a SSD, all
<literal>?/maybe_sparse</literal> files would be sparse.
More information about the Cygwin-cvs
mailing list