DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51DFEoS31222483 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 51DFEoS31222483 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=h5xdXdh5 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23F263858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1739459690; bh=4cUScZhk33GDfN/rAVBXKwhhY5I4T6+wSnPBBf+YWr8=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=h5xdXdh5kWIFphdGv+kkBQc/x2DG6JrlWZULBHdMBsDo5eH1dBPbZAKvRbYubQmWF BHcl0ffpCyCfCjUiPKEddJLnM4/bxpN7+p/f3Vk95meOXl0tuvMQD5x2M6kHM5fOmz Etgyf8z2zsqvCX2fQ01XsbCDyrYEHaNp9qZK620I= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B699E3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B699E3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739459665; cv=none; b=Y64aVEVMPWJ2MFE0G2DfBHz0PJBAvQoaeWKhqtNVsumD1JrkRjWC9hRdGEp/7B534u94aLxyFRnM9d1tRXf/Nas2vFkgMOo/tatkNWvouQHEjFZVhs/IqqrL6bfHcbgOVhJ0j5aLhvLAs+6KHqUhGdwVHo330YfE6JSaJyrClNg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739459665; c=relaxed/simple; bh=0o+PZKF1ManwCwNw6SnkVff40J6FfSFnANZSJv1+Cfc=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=hz4/WyuYB3CnyU8/sGSHMr3ZS+YVHo2/RemtLloDfASFoI6UsIiaEYfkLmvjLZP0E32IcwQgLBIEVWJW23593KamlKymY1Db3JWTVWDxTiBdsbonqVksknJYySAjLZQYfq40axd+OdHLS+bywNp1WwZB6OB8ZHHM/DJ5wiMjRW8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B699E3858D20 Message-ID: <9a9ea0ae-ac94-4b87-9e2c-486cb245bff0@SystematicSW.ab.ca> Date: Thu, 13 Feb 2025 08:14:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: /bin/cp of sparse files broken in 3.6.0-0.362.g68c13dc92f65.x86_64? Content-Language: en-CA To: cygwin AT cygwin DOT com References: <20b723b1-394c-4ab6-ba96-c711e5c34414 AT SystematicSW DOT ab DOT ca> Autocrypt: addr=Brian DOT Inglis AT SystematicSW DOT ab DOT ca; keydata= xjMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePbN LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT7ClgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDM44BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAfCfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: D93E520011 X-Stat-Signature: 7cu8pirjj3u949y71mihwqynyrwom15f X-Rspamd-Server: rspamout03 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX19vrmKHZ44TCkbrUYHxubtl4nescs3Oa1w= X-HE-Tag: 1739459651-833979 X-HE-Meta: U2FsdGVkX1+j/rWpWOVYjY8wugbMiDdymERUERtu+W/ilOMqqITZBS0bGirE3l9NuYVmwOzOOsSEpbTvm/J0usMP5F+BT483eDTwHFqCeutDpHm+/gRNAgFbNIp4KD8J01kX5WLuu8GSw3h3ndt9Dvo7yE40Ta63lnjYUEDbrWLbTHoh1zdF+rglxWRUngaghG4rZkBj+p7k55INdlpArD3/GspEWsPeqBmTzDCg+xTl/KR0b77kLMhI/g+oo2Ean3jCbVtEhsDqVhb4TW1bqaa3GbRTi4yqIu8NQK2Wo8xPBbtRpTm895WF9zqpf921E2o79yCIbXfmGxb0qBqNezlSxmBkeEbJ X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51DFEoS31222483 On 2025-02-12 12:08, Corinna Vinschen via Cygwin wrote: > 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 Thanks for testing and reporting results. The build tests lead me to think that sparse files were not supported, so I need to figure out a way to add a sparse mount which works at home and on scallywag - used ${DISTDIR:-/var/cache}/ in another package so could add tmp to that, mkdir then mount -o ... `cygpath -m .../tmp` .../tmp - are any other commands required for setup other than mount? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- 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