DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51CHsSTL861208 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 51CHsSTL861208 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=S8nRTI+S X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 810BC385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1739382867; bh=28V7x/AKoEKfUbtNW8oWFeOaace85PMj4WO1VZQrtwc=; 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=S8nRTI+SlQAXjzd68cUcg4jRE5R8IwkMiRHQcijO7a7cmZUDVPT55orkmGXOdbVmc c9RZ7Ohsk94+4Ok9I52txbKNq23oOt44KX246LE5cOt2ru52xO3Fh+a8JPXfE9SVHD gwEXiLa6Kqg2+vlmIpL7TtQKb1p7JuNnRKGHruUI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA2C03858C53 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA2C03858C53 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739382844; cv=none; b=rauOzD2lvXPkq6oO1oj9Zv15zXnfnf6c3UtFBDjI4GlQNU2NqpXJFX5mrpteoxc2XUUvcIEj4UW8OH5+NtNwWNZKiiDf397z+ZosQb68GvkCSbBqUJAf/LaNB6HXA3oGfznlmzmLSPUJtJ+P1F8kLFpW81F+Dg+qVog5pib1GqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739382844; c=relaxed/simple; bh=56xwUeZgeA1TMEmIJ1c+nXtJGB3RzXt+mGrA832is3k=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=tfqcnZ24ctlLsMwIuPhlKJodlaShv+sLzFhy1KRFCfMtsmH4l+cSuFfdzNtKr7lIPKtXUV+IVWO4kzacLDeb1OlJdbJbdkF2MvfyKSoCzxlt8jB2hSz8o43dAsjcEDWFOi24Sgy9H5ghfBgzYVYP7Xxc9CfrEKOY29MKlUU3T5Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA2C03858C53 Message-ID: <20b723b1-394c-4ab6-ba96-c711e5c34414@SystematicSW.ab.ca> Date: Wed, 12 Feb 2025 10:54:02 -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: 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-Stat-Signature: moa5rngoy3z8y4d6b43xqxyuc6pqathy X-Rspamd-Server: rspamout08 X-Rspamd-Queue-Id: 085D42001C X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX184nQ3Gv8qVbdamxEXsBfyG2jFm3ajfyGc= X-HE-Tag: 1739382842-670920 X-HE-Meta: U2FsdGVkX18PFMzZHg0zJ2W8DP5/AQe2z1T0H1J9/lewNTkzTJImfHWF1Uo1TMPyJ7hmtPr5LGDg03lqoKNaAPIfFtXQs98A1zI1kmysCbQdAWVqhRq9qO1cHq4xqQ1n8nqYYuDk3/f0gHEFi6/gypx8vv7yoyeC2L9REa9OlR19dNTG3VanRMgszh5ERXJcKrK5wUYiks8YY5bAaABj2HHVigz3kh/iZdMmfLZOuunNfcCqQnvA2mG2X8g4ZGkdhv3DsxKhrgEBgptsLnWm0gXSg3HFlm8BxobfUVBRPD3aJhDBZKxzXQY5U2wRE1qc4JSy3JyKKvRmJsX6FImJW3gZJTQTutYV 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 51CHsSTL861208 On 2025-02-12 10:30, 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) >> - 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? -- 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