www.delorie.com/archives/browse.cgi | search |
DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 51CJ9MEK889425 |
Authentication-Results: | delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com |
Authentication-Results: | delorie.com; spf=pass smtp.mailfrom=cygwin.com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 51CJ9MEK889425 |
Authentication-Results: | delorie.com; |
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=tLzNbIEP | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org F33FF3858420 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1739387362; | |
bh=ZVrJNpFWDl01heq/3Zv2fOogmPgIksTaIi0zyZqxDUg=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=tLzNbIEPZlVoorXNVQ8fSAwdkkw17T6PEVS+Mi6MlJt4dWAE2fnycW/g8ZqOZo7vg | |
O64p1kAhwO+Qj/ouxt6JoZbxYuYBZmTon9U2jvfaZnL/nzMN9tT6lRCuUEpIBxmFGr | |
6UQRI53RZhyzUyuC2FaenlkUYTfPzEjv6omJ3SVA= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 10FD53858C78 |
Date: | Wed, 12 Feb 2025 20:08:24 +0100 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: /bin/cp of sparse files broken in |
3.6.0-0.362.g68c13dc92f65.x86_64? | |
Message-ID: | <Z6zxqBnzxuzh9EKS@calimero.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CALXu0UdYOUeFSF0GXtqccbA=ZeQQEn62y5MBdEdJPVCkHHXgrw AT mail DOT gmail DOT com> |
<Z6zasFeEi1cavLyr AT calimero DOT vinschen DOT de> | |
<20b723b1-394c-4ab6-ba96-c711e5c34414 AT SystematicSW DOT ab DOT ca> | |
MIME-Version: | 1.0 |
In-Reply-To: | <20b723b1-394c-4ab6-ba96-c711e5c34414@SystematicSW.ab.ca> |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
Errors-To: | cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
On Feb 12 10:54, Brian Inglis via Cygwin wrote: > On 2025-02-12 10:30, Corinna Vinschen via Cygwin wrote: > > On Feb 12 17:32, Cedric Blancher via Cygwin wrote: > > > Checklist: > > > - Volume has FILE_SUPPORTS_SPARSE_FILES > > > - Cygwin mount has "sparse" option (mount Y: -o sparse,exec /cygdrive/y) > > > - source file has FILE_ATTRIBUTE_SPARSE_FILE set > > > > > > But cp --sparse=auto ... or any other combination of --sparse does > > > copy holes, i.e. turns 500GB of hole into 500GB of data (zero bytes). > > > > > > echo "hello sparse file\n" >testcase17_sparse_begins_with_data && dd > > > if=/dev/null of=testcase17_sparse_begins_with_data oflag=append bs=1 > > > count=1 seek=$((65536*512)) && echo "endoffile" > > > > > testcase17_sparse_begins_with_data > > > > Works for me: > > > > $ uname -r > > 3.6.0-0.362.g68c13dc92f65.x86_64 > > > > $ pwd > > /home/corinna/tmp > > > > $ mount | grep tmp > > C:/cygwin64/home/corinna/tmp on /home/corinna/tmp type ntfs (binary,sparse,user,bind) > > > > $ echo "hello sparse file\n" >testcase17_sparse_begins_with_data && dd if=/dev/null of=testcase17_sparse_begins_with_data oflag=append bs=1 count=1 seek=$((65536*512)) && echo "endoffile" >>testcase17_sparse_begins_with_data > > > > $ ls -gGsh testcase17* > > 128K -rw----r--+ 1 33M Feb 12 18:22 testcase17_sparse_begins_with_data > > > > $ cp --sparse=auto testcase17_sparse_begins_with_data testcase17_sparse_begins_with_data.copy > > > > $ ls -gGsh testcase17* > > 128K -rw----r--+ 1 33M Feb 12 18:22 testcase17_sparse_begins_with_data > > 128K -rw----r--+ 1 33M Feb 12 18:23 testcase17_sparse_begins_with_data.copy > > Hi Corinna, > > Did you test using coreutils current stable 9.0, test 9.5, or both? Tested with 9.0. I just installed 9.5 and the result after cp --sparse=auto is the same: $ cp --version | head -1 cp (GNU coreutils) 9.5 $ rm testcase17_sparse_begins_with_data.copy $ cp --sparse=auto testcase17_sparse_begins_with_data testcase17_sparse_begins_with_data.copy $ ls -gGsh testcase17* 128K -rw----r--+ 1 33M Feb 12 18:22 testcase17_sparse_begins_with_data 128K -rw----r--+ 1 33M Feb 12 20:01 testcase17_sparse_begins_with_data.copy Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |