From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) by sourceware.org (Postfix) with ESMTPS id C9B423858C53 for ; Fri, 25 Aug 2023 11:09:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9B423858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nrubsig.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-34bb6d58f84so2607325ab.2 for ; Fri, 25 Aug 2023 04:09:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692961776; x=1693566576; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p0ezjTajDFaLIwJzIdrRpzMZLbLBKWY8L1wj+o34jt8=; b=C4kLYn1Zn8RhLmlIhfG0DsFPn6YlJa8SkHjqQqjXZpUVkU/rq+9zgJQ23sgf4TS2XP lKYYtAuyp4QZ5vcKW1q0PapfVRgrOmen2GUaaC+wl/7i1LF7uC9lFyHT2wOJZZRzwWgP C5gl2kHsz73JQcHLaUUzhXYPXshn4CNiHqgiltEb/LjDSCdEgjvcIibuP2B+xObwR+VT QfzXKoInb5YXFOtssstHzX2uSMCdF2lNxSPwpWeRO/NLuVwUzC2Z+ffXtjYXfzSe4qxv vFzIdPOCuHf2QhwNkqCV4RNHGwQcrxZGwaGYSqdsTBUTH8U4d7QqifzkLMmBzQkK7Wsn af+Q== X-Gm-Message-State: AOJu0YwoTViEv0PQQGUcdiCkp87Xv+XQCi/CW5xhKfkB64wpKKjuvgyP QLdyL42PrQdU2gVZYtEI2z+3cRVvxHxZ6PoxFgn+lSSy X-Google-Smtp-Source: AGHT+IEMIab3zSZ1jxoaNzmlCO8uVzuvTIyXm8a8kyj3oWCzNSRlpr/Xrvmm9wwUCnEX3aG9aZMBoJBFd1XUq94/QV4= X-Received: by 2002:a05:6e02:1bcc:b0:348:ac7f:69a2 with SMTP id x12-20020a056e021bcc00b00348ac7f69a2mr11023391ilv.15.1692961775818; Fri, 25 Aug 2023 04:09:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roland Mainz Date: Fri, 25 Aug 2023 13:09:09 +0200 Message-ID: Subject: Re: SEEK_HOLE Support in Cygwin? To: cygwin-developers@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Aug 25, 2023 at 11:05=E2=80=AFAM Corinna Vinschen wrote: > > On Aug 24 14:03, Roland Mainz wrote: > > Question for Corinna: > > Everybody involved in the project could answer this question, but... > > > Does Cygwin support allocation/deallocation of filesystem blocks via > > Linux's |fallocate()|-API ? > > ...just try this: > > $ cat > a.c < extern void fallocate(); > extern void posix_fallocate(); > > int main() > { > fallocate(); > posix_fallocate(); > } > EOF > $ gcc -o a a.c Thanks... ... I saw that the functions are there, but my question was more like "supports"=3D=3D"calls native Windows API". |fallocate()| support seems to be in ./newlib-cygwin/winsup/cygwin/fhandler/disk_file.cc, and supports the allocation of blocks - but I couldn't find support for |FALLOC_FL_PUNCH_HOLE|, e.g. deallocation of blocks (to "punch" a hole into the file). Is this an oversight, or does Window's native API not support that ? > In fact, we have a list of supported APIs: https://cygwin.com/cygwin-api/ Thanks ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)