www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/12/16:35:58

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51CLZvtC932635
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 51CLZvtC932635
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=v8iU2C7n
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 843823858403
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1739396155;
bh=fDlmQxipz7+Upk541EDGKCu3Fkf1ISdgn2ot5jTYa/E=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=v8iU2C7n1/Ozr6u+UH/5gQsX1ZmrZ0a7RQWENuXPm+KpOGq3sn4/A9aeeh24vqdyP
YFZq88DhTESPbmuxiqc33L/xP6ESWVirGoj91k36RcCRaNLb9JhR/GAlyDzszsNt2k
kl+hmAbxlcd26H8K7KcsTFkzUsMOtLuRYPqJzRAw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D42C8385840C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D42C8385840C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739396087; cv=none;
b=wbi9tk5+nCYZbNRb9KWhxqk4mK6naZ5r+82zo4zPe7sCEyIJNTCUllkFouFlYS56AxN83yg86wZGx65gVmUotU0qOS0dumqI/ROqOHE0IVXKtmoRNwdGqJ3NIXmtKsQ26OkGJx6wu4monRAYyb4fdm4sRN2RSIaGmd82P+HKYa4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1739396087; c=relaxed/simple;
bh=ofsgwjkpIP4sV3PwCU67LR0XU0g3rqUCxZsUk+d2o0c=;
h=Subject:To:From:Message-ID:Date:MIME-Version;
b=MFOZFf2wNnINVORx1q3vQVNfll4ebfz64d/jFT3oPwWfXYKnG/jPnyyD+80y0nbPb38VcBMRb1PjOLSVJfC3X2voGsjM/Xa5BsGZJV/AUhjVcVMW2+pna9s/QxPlEy8InixVNKFy4Xok4r6ANY2hay89VdhM+luWEIHKEdT+dlA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D42C8385840C
Subject: Re: /bin/cp of sparse files broken in
3.6.0-0.362.g68c13dc92f65.x86_64?
To: cygwin AT cygwin DOT com
References: <CALXu0UdYOUeFSF0GXtqccbA=ZeQQEn62y5MBdEdJPVCkHHXgrw AT mail DOT gmail DOT com>
<Z6zasFeEi1cavLyr AT calimero DOT vinschen DOT de>
Message-ID: <0913be67-c8ac-a5ee-50c4-7964d68843d6@t-online.de>
Date: Wed, 12 Feb 2025 22:34:38 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101
SeaMonkey/2.53.20
MIME-Version: 1.0
In-Reply-To: <Z6zasFeEi1cavLyr@calimero.vinschen.de>
X-TOI-EXPURGATEID: 150726::1739396078-4B7FDA89-ABAC3B71/0/0 CLEAN NORMAL
X-TOI-MSGID: a16604fd-7efb-4b87-a40d-ebec9be2df39
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: Christian Franke via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Christian Franke <Christian DOT Franke AT t-online DOT de>
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>

Corinna Vinschen via Cygwin wrote:
> On Feb 12 17:32, Cedric Blancher via Cygwin wrote:
>> Good afternoon!
>>
>> Is copying sparse files broken in 3.6.0-0.362.g68c13dc92f65.x86_64?
>>
>> cp --version
>> cp (GNU coreutils) 9.5
>> Packaged by Cygwin (9.5-1
>>
>> Checklist:
>> - Volume has FILE_SUPPORTS_SPARSE_FILES
>> - Cygwin mount has "sparse" option (mount Y: -o sparse,exec /cygdrive/y)

Do all mount points below /cygdrive have 'sparse,exec' set?

If not, this may not work because different mount options for individual 
/cygdrive/s are not supported (AFIAK).


>> - 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)

This mount is independent from /cygdrive. That may make the difference.

-- 
Regards,
Christian


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019