X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D00E53872E4E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1700779099; bh=/BmBWxNYqlcAdjs/rDqBq79Qvpj1mu/CTl+7LP6fVXQ=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=UEspk8V87MhflGlinb3wyTDpKq4+iiVkbyQZu6aseCkMzTSbDBK4jLvqB3rw8dmS/ 3dJAd5+zHt9LUsX82O7v7B019c7FnqpZD8codb8JpCDL36jr3X4yfLJ4x3MpDps8nD n7jqbyL0Pw0GreH2ry7aeoGgu3rcUiakgH2YveSk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8CD3E38410E4 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8CD3E38410E4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700779058; cv=none; b=K7JaqJWbauTK8Up0+vV9FjtIqQ6wu1K1+VKAoeD4ltaZEaNnxqcN+HTXalpk26b9fw+MZTSSe68Z60To4AFnx5Soi3QCS1DlsOuquC1PqfZA6tLVBjWkW1jKO9xf92KhZVRZw7hpposnECHOxlzxswAaUgZ4TqJGV21uzxdo1no= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700779058; c=relaxed/simple; bh=egL5nH022OVscEbFtnRn4j1IZV9yc5Abo9zZ+8+8CY8=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=dJkQ6sfxcgkhBVxVFwHg17C6k/IqbuelMa5wuEZ2NMRcO4qBQV3oUx58P9hKCk8pOYMD/UTKzt/gcHqGzmLwSPHqm4b0q3WDtdVlnMyx1fQDzWSPwIGmNdOEQS1GnpZ6Fm2UHn6zN7mLArcKsN6q+hB+4/DguuiOYfJlCSUO3/E= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700779054; x=1701383854; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HdOwLxYHKGww2OyC8GRiGLITkMkKxFjr2lLOy4TfXuE=; b=gzyZubXvLscVoqrNcn4ouiufcD2wfBeWZglRcHBIhDKzn33FyHO41xOzx8FXPMKd6L 2mQkteyWHPxe21ETPru2hkoC+cyRJw3G//hXzCPhs5Dm+dSW+e7l/vM26MmPjIkbNzno +oJcjx3LuNEXjrQDE5Rncaw282g+xoyb3tv3271ZfA/00AiU7R6Uy95m/nuJcQ17qNpm LGUyR9R0CSHel3kY7cp6sKpDj0xcFh6M943x/EKl7UXF06sWv7oUYd3lARqlWCQbRD/X HNVGOm8uMthGX+JBkDGutkNB509gx5p1gC/ruAzaRaFnHcij0KMr1Q1u679JYbEopOun f7mQ== X-Gm-Message-State: AOJu0YzoFK1Vu6KpwGwwVXyh7VrEsQrJitDqgRC1Bg+533/6DRwc5UyW unILoFCACI1ZtvelxvX72UyoITVsJ2Qwc4zs//kx2qbUKk8= X-Google-Smtp-Source: AGHT+IHm2IulbB8T6F1Iq6AyfW41FeHc3xqCfGeAaxD1wbUOYj92VLaU+8mYBSnFGaAQjaJty8roug9QPXHoVx2Xe3k= X-Received: by 2002:a50:d493:0:b0:548:5671:c86d with SMTP id s19-20020a50d493000000b005485671c86dmr585314edi.2.1700779054405; Thu, 23 Nov 2023 14:37:34 -0800 (PST) MIME-Version: 1.0 Date: Thu, 23 Nov 2023 23:36:58 +0100 Message-ID: Subject: Cygwin api to punch a hole into a file? To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Cedric Blancher via Cygwin Reply-To: Cedric Blancher Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Linux has fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, ...) to punch a hole into a file, i.e. deallocate the blocks given and make the file a "sparse file". But how can I do that with the Cygwin API? Does anyone have an example for Cygwin, which is the Win equivalent to Linux fallocate(fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, 1048576, 2097152);? I tried with Cygwin 3.5, but the file was not sparse after that. Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- 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