[newlib-cygwin/main] Cygwin: faq: add lssparse to sparse file example

Christian Franke via Cygwin-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d29943e56dc5e30e219b7da114b0b0c31acd8cbc

commit d29943e56dc5e30e219b7da114b0b0c31acd8cbc
Author: Christian Franke <[email protected]>
Date:   Tue Apr 8 13:34:02 2025 +0200

    Cygwin: faq: add lssparse to sparse file example
    
    Signed-off-by: Christian Franke <[email protected]>

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.