delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/29/02:56:32

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D328385840B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1706514990;
bh=Ijxt/t+bvqgStuJYBkhp7Yw2ggi3xJ+OC5v3791Tk5E=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=dk6T5GYJPZYjAsO3jkajtrQ4L/VijhaPYdPG4r8iApT+GKtMLCAcLRdxbCVirB9+n
6fZvrnjFccHvVe00Bo7CTv0RgT0OZNlIaYL8gaLJpQ2FQKLlpKHI/A2GTTX2pnOIm0
AyTE9Ciz0UPx2ARdhzlA44OXg2J6iyENiAP/N9ww=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C2BD3858D32
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C2BD3858D32
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
Message-ID: <e01112b1-a8c9-4aa9-a5a2-5827187106dd@maxrnd.com>
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 AT cygwin DOT com
References: <CALXu0UeXUwCjY+WVwXA2X68XGEcm63SPPOPQtO-ZiDKFqXYW5w AT mail DOT gmail DOT com>
In-Reply-To: <CALXu0UeXUwCjY+WVwXA2X68XGEcm63SPPOPQtO-ZiDKFqXYW5w@mail.gmail.com>
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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019