From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d502]) by sourceware.org (Postfix) with ESMTPS id 83D263858D28 for ; Mon, 4 Dec 2023 16:20:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83D263858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 83D263858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:6b8:c02:900:1:45:d181:d502 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 Received: from mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:4504:0:640:e4cd:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id 7885E5EB2A for ; Mon, 4 Dec 2023 19:20:00 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 0KdN8Vjm7eA0-w6uvzL83; Mon, 04 Dec 2023 19:20:00 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1701706800; bh=Es6ylQFCxuVnZdlw8cphJCS8WwVzMIbAWSWIutuLIF4=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=IW0fVdw8/kKPW0K6oSlctJzHWxhdIfdNIW0ABgx5Q8sfkWTvEXhcAb5LgH8dc8nMY vuMlUtuGVwuC1e1ecHd05VkEcyrPm4MKEewnl5YoqENT0a8NXqzDALAQAh4dsi+7nn nfF7+IQjiB3hCA75vIMJpwn2Su/7hHlAnFIJFexk= Authentication-Results: mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 04 Dec 2023 16:07:39 -0000 Date: Mon, 4 Dec 2023 19:07:38 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1771266816.20231204190738@yandex.ru> To: Corinna Vinschen via Cygwin , cygwin@cygwin.com Subject: Re: Cygwin api to punch a hole into a file? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 List-Id: 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...