X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 966EB3858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701787237; bh=zNs+ecVIXToIiF+D57Z4mrJsyqXzFiedel5BHJiuZ40=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=JeKiHjnljHZtqSSgofdXbv1wX6SNXLgkycegDDLJBfYQ6LIeMqSYC8xd7YPf8371n B6rP4XXePClnpznW9DJHxPRkqoAsHnPuOAShVVU+i35YHnxJC+CEafNkKdP0fBjr3w IuwLb1p14/TOsaKBzocv7C8sO/thGiboL+jayLh4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5ED323858C60 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5ED323858C60 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701787223; cv=none; b=xaV7/eUSws/X68mpoiQrwNfJDUeegk2Ssr8Tix5unRbjfdYFo2w7cJQejRzB6mz5wfdFURzJsZ7yKeVlQ8UzUxL1pPGbboSbnWW7GLbtMgdYEaFIqj2Cu7RMhnf8pV4Qvwv/M8rH/DmnbchwctvBQbU2o87UrSGDC35QzJsX1Pk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701787223; c=relaxed/simple; bh=PCA/2Njxxrd0y8VefnW1VBrGEWOT7sRCR2MLGTijGj0=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=iCTtdDj9ivTdEaTMW+JuREXBhbx2wT0MW0uVF18Ahw/RbqT6aCH1+QPC1OPUGwmi8W8AEVAK6cwaM/k0mhLeQLA/gnkmmo/0iwslIU66IITigIcESg4yW2EVarSiKvW5+QJQKQL9mD6Pet2GcNh9D9NE3fGLlXXjZNUHFwpmSv4= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <12e1d9d9-bc56-456e-a1ab-c760987f3ac2@towo.net> Date: Tue, 5 Dec 2023 15:40:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cygwin api to punch a hole into a file? To: cygwin AT cygwin DOT com References: <33d4b0df-7a6a-40cf-85a2-9a4300198672 AT towo DOT net> Autocrypt: addr=towo AT towo DOT net; keydata= xsDNBGNaf3QBDACVevqudcTSevLThXKQPU1QpaDxtGuYjtwmr7i9wXxVGih4Y4oxOJN4PYlu KBX9IVAI4651dA+xYtXuyIkWOPZWyyzkGKavQOn3Q7dk09oj7bh2IwOndpxXXde337D408EQ bQEGbMHr9lOWhSAideowzgCeFIvGTf2AovbPh97HpexJn1/HCRiRAhTNlrkS1DByUgCAeEMK fEr6aGM/Ou29MT+eTnQwOIZTnl9Z9LxM2FtqqMH3MycC7I2OoW3XXhuL8BPQdyJUjWa0/J11 Oo5jFkRXtWenIns6jGn18oW72jnDmo9jXwwS+iZWAV6Y51nhD7jSC+3xs9ORmPCdtHUSpTr1 zh67UueUJ3DUUNVuA25Hn/9EJMJ2L60BGUEr88NEB6pcZhmcwdkurAQeYT6t+frzBz2ctsoN BoxP/Xc02yd+z7hXWRRMrJWh9WHlQHA3Z4FfmyNhyPhs3MgKTJ1E9QfzGquigAmF3/k/Dc1m 7cSOKhGYhpEJdSpdXccJFKkAEQEAAc0cVGhvbWFzIFdvbGZmIDx0b3dvQHRvd28ubmV0PsLB BwQTAQgAMRYhBHUiRKsHn5d8BpWdP8bz0e72Bp0CBQJjWn93AhsDBAsJCAcFFQgJCgsFFgID AQAACgkQxvPR7vYGnQKSMAv8Di+8MXB2mcfsemRdShfLLKcLOv+d0CXAtPVaY3XKxbKpRvC9 +AAT5wIHYjQft77/b2y87vGIh+nQ5hKLtNtQPSDtqG/Igkb5jAXpLi28fSUzgM96DvARmwve 5wSnAU3prxH+Y63YpOpslEcGMRoEtYCDy1ANMYPcEZT/Yv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ug2Kyu6npXduCx2dc9/5OBU55N8tY8+hf+15dwLbKoT1neG1fPc3ffnxPafYBCr3TO1 IGONYXbsnSP5E6xshOyroJz+A3NvlMnXlj9wQ42UEpG48CclGALB5JRfuX4D+qze6iSyEMgQR M9iRhDjOF5gtftngco579BHgLoDNurBArRH8FZNaiHamW3oIEQa/S08P/0QTJPQnVrl59o/Jo JyOPxjPPmSavpApYRfFxXrEVDtYMSB5K1M0EZvGRxGRdLCKpecW9M9hlcAXUMx0bpD25lDfNn u/Jgi5mJliyn8lGqFTAUdlsL3U69TciEzIIrNM0KS1kYx7sNY8otlX6SAlrn6HCP0kSVCiETu x8uUhgtBl61ygETnapAZHKk4bLZnE9b2p6ITUyS4fJuT79uCd0XO3UNA+3OKQKW+iTt4VEzzw AHNv4yYt0LV/eVaRvgoV2TasYF2PrZyr7dwPGCTMG9U/Ll9GOYJqVu4QEObWh46xEsCANFxxa ITOkvT5VZmm3jqQ== X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Thomas Wolff via Cygwin Reply-To: Thomas Wolff Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Am 05/12/2023 um 14:53 schrieb Corinna Vinschen via Cygwin: > On Dec 5 07:36, Thomas Wolff via Cygwin wrote: >> >> Am 01.12.2023 um 12:02 schrieb Corinna Vinschen via Cygwin: >>> On Dec 1 11:22, Cedric Blancher via Cygwin wrote: >>>> Not all filesystems have a 128k block/stripe size, and certainly most >>>> filesystems have smaller minimum hole sizes than 128k (e.g. 512bytes >>>> is common, ref pathconf _PC_MIN_HOLE_SIZE). >>> There's no _PC_MIN_HOLE_SIZE in Linux or POSIX. In Windows, a sparse >>> file uses chunks of 64K. You can see this even with a file of just >>> a single block. Try this: >>> >>> $ touch x >>> $ chattr +S x >>> >>> $ echo 1234567890123456789012345678901234567890123456789012345678901234567890123456789 >> x >>> $ ls -ls x >>> 1 -rw-r--r-- 1 corinna vinschen 80 Dec 1 11:56 x >>> >>> [repeat echo and ls -ls until...] >>> >>> $ echo 1234567890123456789012345678901234567890123456789012345678901234567890123456789 >> x >>> $ ls -ls x >>> 1 -rw-r--r-- 1 corinna vinschen 720 Dec 1 11:56 x >>> $ echo 1234567890123456789012345678901234567890123456789012345678901234567890123456789 >> x >>> $ ls -ls x >>> 64 -rw-r--r-- 1 corinna vinschen 800 Dec 1 11:56 x2 >>> ^^ >>> This >> For me, it goes up from 1 to 4, then in steps of 4KB. > Is that a local NTFS, did you actually call > > chattr +S x > > after touching the file, and did you check with > > lsattr x > > that x is actually sparse? Ups, sorry, I was just throwing my 2p into something. Yes, on a local NTFS; setting chattr +s does not change it but lsattr says: ---a-------- .ls-s So why does chattr not seem to work? Thomas > 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