X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C85793858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701706820; bh=7+zZQBx+X3a13OAtzv+ykR87fovx5AEzx1lz64/f7kw=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=aXcWj8+PXx8uxdEaAcO0DmVdlKznj4ruy/S7L3dTyEb1rHVKuwfOdO2z5mtU/9VHV Fntd0oHA+sS6v5FtpjX2HDAOXEF/GHddY7d+/sMg2y3JvYp+o/3b6VMU25fEpyVfun wHEYt3jP1bcBKHpvemz36WCDXRhEyXEqx4w75GS8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83D263858D28 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 83D263858D28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701706806; cv=none; b=KFM7kGdLDxXzU12yzU5RCwSLe0VTNuF7ccBWINWWS40HNlnOKywsMJX4xm0aV8XXzffxAK0nbB9G6+4q69vjYqLvhIWAdJkWDGN+Qmp034RcVuvJFIHDYSSJoZfrNAJda48wZM6aFk/72RaVlzyu+/V/vH2xt1e3h4VhJJUiJB4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701706806; c=relaxed/simple; bh=2q3gK/9lgK+7lXphg/CF362e/re2mRacyMB8XF13UMA=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=plYs4+Hgql1kNzOxO93Zx0HZ0MrXNQleMuIxk6obitnHbMRRnZA1PwhZuULPnuURQePEXUIePzRvqmKsQUYB+zCNzzt2RM7hWBZDVaD9RVDm66FbDn7eyvIt/S784YU0v1Y9q7xUaKvqEzEuebok46dy7f8aeK0XeiUVUrSQRsI= ARC-Authentication-Results: i=1; server2.sourceware.org X-Yandex-Fwd: 1 Date: Mon, 4 Dec 2023 19:07:38 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1771266816.20231204190738@yandex.ru> To: Corinna Vinschen via Cygwin , cygwin AT cygwin DOT com Subject: Re: Cygwin api to punch a hole into a file? In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, 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: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, Corinna Vinschen via Cygwin! > I don't know how Windows stores short files, By Windows I Think you did mean NTFS. Then yes, file data for certain short values is stored directly in $MFT. This is not specifically file contents, and even if a file content is just 1 byte, not necessarily it will be stored in $MFT. It all depends on the entire size of file metadata. If it does not exceed some-under-1K in total, then file data may be stored in $MFT as well. > maybe they are part of the metadata up to a point or some such. However, as > soon as you raise the size over a given point, the *allocation size* will be > rounded up to 64K and from that point on, it will be in 64K chunks. Also > sparsifying and desparsifying of blocks only works in 64K chunks. -- With best regards, Andrey Repin Monday, December 4, 2023 18:56:37 Sorry for my terrible english... -- 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