[PATCH] Cygwin: faq: add lssparse to sparse file example
Christian Franke
Christian.Franke@t-online.de
Tue Apr 8 11:51:54 GMT 2025
-------------- next part --------------
From 3944b5b21502e65821a4c30d568207273320347a Mon Sep 17 00:00:00 2001
From: Christian Franke <christian.franke@t-online.de>
Date: Tue, 8 Apr 2025 13:34:02 +0200
Subject: [PATCH] Cygwin: faq: add lssparse to sparse file example
Signed-off-by: Christian Franke <christian.franke@t-online.de>
---
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.
--
2.45.1
More information about the Cygwin-patches
mailing list