DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 505Ds2CG3165237 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 505Ds2CG3165237 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=NvtB1P9H X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A72843858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1736085240; bh=/M1Jiro8GYnAyGs0pnaKEP28jxTU0z5ceiv1jTAmvqg=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=NvtB1P9Hgp5ZkoH5iLcR/9/F+rbrWKFJZuw2Mo2rU10xE+1lYeSuZ2NMUCEiPJCWa BMvfOrJdDkpSQ9wtccgfionbEma/z2ZLYq0djtz2ifZ59lh3eHYuxstZIDYaorkAOJ gUzPyOgg66M42bPxIei6kUq9ZNZ1/hJ+aBetpESs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C89AD3858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C89AD3858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736085184; cv=none; b=YVW+UtyMcW0mGu+QDXRXH0W9B8uIYKPpTk7QOwtgg1czUjCf/OvDhUV2xjuSzMG/QJm9g/PHFwB/WPMSvGe4MwNH7AM6EBlf0kAeqQAA6100X87YnSa0O4oJqm0Essc0Yw3cRVsi8fbPbwF87LbOK6OxP8r/yjzCfcq7XSaedOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736085184; c=relaxed/simple; bh=Q6IPwF/JXGKOzoPCCCO22WWGxxCIVBbwrgkgmrLg5tk=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ep1hd+eDUDGARCdFoNUBUoJRAW7RW9NVhR5PqtWhY2emJrV9/JbIyvHJehnR70lz9lPsV2OSIieGlCA6cZ5UzUMjGrSzo4Ynuz/ZsUP6y0P69Yielgi2AXS0pByRdwHsjlERNbB4iNXsVZlZJAljuw/psSswulI35AzIBXLXrZY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C89AD3858D21 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736085182; x=1736689982; 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=Q6IPwF/JXGKOzoPCCCO22WWGxxCIVBbwrgkgmrLg5tk=; b=HxCSkTy5+MwO5nlqoEYAwKTORxi6wXiOuFLdq3oHS1xwqHVkBM6GotiI83B6+NFpHL NqEo5AsVo9Yk20wpmNPvrZ2MbqxLsaaAmJIUYAB9ito8f2jswRwE4yZUbZneK3BUFtwC eBDIu49saEqis4G+tfuVXzciLuUYzBB+1s9iDM5L5cDnfHgI9DJzvLSuiyzHdvhEKvKr VICSQArDGcUTxHiclR7xOikboSTdmHzLwuP9ogQyvBY+Rz0EzynIKrsDwxAifxVHNBfE +aa37j5Mk6qAhtcei5xJfpuJeDa6OoqBS8NM5zVF/yUtNmPzGMeB8FYTiDclxyFzgZdY 3yGQ== X-Gm-Message-State: AOJu0Yy5HvLZQsLbKWOif5DgCggWQISNIQya0YPCan8poToBw9fuo2tm UBBMT+HgsxwdNgDH3cOOD3N/ThCRSwr1CxB6c9KF6dkepYUW+kwUz0m2SrBMp7rPPtfMsST4/uD C4yxlTqog7N36t1uP2unAxdvbIuICoSfj X-Gm-Gg: ASbGncsMPkSwjL8CtANY6VxElNkjA/+2M40vHaGMcnwEUWKRaWKMC4YHHXuXtzPh9As 8q//o7i543JfVXVswwdx5SiqUV0i3gdqzXh8PCbM= X-Google-Smtp-Source: AGHT+IHrypeq3A0wQMsfsJkduuS3MO+mednKlRmIWcx/hSzC7qUEULuOUCElI1BI03S7Ixrtj1bkA20EGqnhuhJpcMA= X-Received: by 2002:a05:6402:2802:b0:5d2:723c:a568 with SMTP id 4fb4d7f45d1cf-5d81ddf3ba0mr55531747a12.10.1736085181895; Sun, 05 Jan 2025 05:53:01 -0800 (PST) MIME-Version: 1.0 References: <0ddeea07-0b3d-442d-be13-cf9b2379311d AT gmail DOT com> In-Reply-To: <0ddeea07-0b3d-442d-be13-cf9b2379311d@gmail.com> Date: Sun, 5 Jan 2025 14:52:26 +0100 Message-ID: Subject: Re: Cygwin copy_file_range() support with sparse file+FSCTL_DUPLICATE_EXTENTS_TO_FILE? To: cygwin AT cygwin DOT com 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: Takeshi Nishimura via Cygwin Reply-To: Takeshi Nishimura Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 505Ds2CG3165237 On Sun, Jan 5, 2025 at 1:06 PM Václav Haisman via Cygwin wrote: > > On 05. 01. 25 7:31, Cedric Blancher via Cygwin wrote: > > Good morning! > > > > Could Cygwin implement copy_file_range() support, including sparse > > file support so holes are preserved, and > > FSCTL_DUPLICATE_EXTENTS_TO_FILE support? > > In theory, this could be used to implement that function. In practice, > the block cloning is only supported by ReFS. See > All Windows Server (2019, 2022) installations we have. and those which I know about, use ReFS (except in cases where Alternate Streams are required). AFAIK SMB3 also support FSCTL_DUPLICATE_EXTENTS_TO_FILE, so this would be a HUGE win for Cygwin -- Internationalization&localization dev / 大阪大学 Takeshi Nishimura -- 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