From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id 4C2BD3858D32 for ; Mon, 29 Jan 2024 07:56:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C2BD3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=maxrnd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C2BD3858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=69.55.228.47 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706514965; cv=none; b=AMaBdstsJNhO9zT8F2/qgQTZPQH+fFRdo4RL8s0mZJ3AJpHcely2fuJaBvhPmVQvE2qy5s6mPSAdSPrSlvPyjdBgfPd1sffv19oPiWGKHU3tPDFezmlSTu4/PgMvECz0vhvTnqaRtrPBRIv75qPWwPdjXio9QuDTzOyMDpXcX6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706514965; c=relaxed/simple; bh=CI58JLMaD+IU0bHl5DWQi/SqE2A37Ggt7jhcpVOZhRY=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=iIY8C1o7OrIjz677HgGbAqw6c9/JpODW2VOSiKiXlaYrUjbaZzTVV6ap0R3+QK1ZTUUbEBpHCFVlGj65UT5Pcnw2w0WAyNoKQvIfPp9BzGImJkZcNskuaO8J3nsmhUsSdpHUgMDV6PxAxHkrcuUMv6hwJcH8n8oE2djtK6sqwYg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id 40T7xPha001614 for ; Sun, 28 Jan 2024 23:59:25 -0800 (PST) (envelope-from mark@maxrnd.com) Received: from 50-1-245-188.fiber.dynamic.sonic.net(50.1.245.188), claiming to be "[192.168.4.101]" via SMTP by m0.truegem.net, id smtpdKb0ORm; Sun Jan 28 23:59:24 2024 Message-ID: Date: Sun, 28 Jan 2024 23:56:03 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever To: cygwin@cygwin.com References: Content-Language: en-US From: Mark Geisert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,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: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: > Good morning! > > rm -f myfile > touch myfile > /usr/bin/fallocate -v -d -l myfile takes forever with latest Cygwin 3.5 ^ length goes here, before filename I believe you need to chattr +S myfile after the 'touch' to make the file sparsifiable. Also, I'm unsure if '-d' makes sense when initially allocating a sparse file. If I leave it off, fallocate does the right thing. I'm separately investigating the 'takes forever' report. ..mark