X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AC12385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1709628442; bh=EWVZFL/CWqXnVY5IED7oa8DMF3uQ2K2+0yjPfudGwuk=; 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=dirR6DRLbHuBT/xtCwFdS5pP9v9uaQ0hLmCIqifiKiRHNPbWddVsBMdIxTx2hyuHS EVL0zohDJpq5lqwW6VilWdb5bmfHCnwjP3ORMGn43QBhPGKFk4TI9kZsEMPvFrwTNu S4IMsP3bzC/C876t5DcwMRpVlJGxCIbGQxgNOtBs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2105F3858288 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2105F3858288 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709628413; cv=none; b=mRokZF1K7wz1z8a2w54swL2v80tKc6VslslD9vut9n7XOCk6Z4kBTd6hw9j+KBmB0GWIiW7AISQJz4Gh3W+xZXHFaZw4rzk2hsToMUD7UdGRg5ekJf6AOmU0rqaKKRqtN44MXU77d3ETJrHAxBhxvPc3ZIOaOgDmiCob3yNlvKo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709628413; c=relaxed/simple; bh=b1Xi6EmoBepkcoqClJIWtR0LPp06oCyMyyF+891gt8M=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=mb72OX8t3MZLPxtMLReTqyRRmY6vD47i+tjBxOO/mTtAvml4RWIHZTNalvZojoZMp4EehIbjHYJ7REFi7iDwwX69KRD41oATIA3OGQyETSczJNPhtlmmWDgeV8QXAJqWCHMkaHaREC5oBvZEf7FiQZzogaktvG8aAeMmfOHgqZk= 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=1709628409; x=1710233209; h=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=mDYmUm19+Kz6Y7kXGtk6b76om+rr5NxZ2wy6q0Gl+TY=; b=wuDifZaOJnP3mpFBmBiz9ng1NPJ+RCqIxx6uqN4sKgssFt6jwdAIfD2ijr8tqp0/KH q0DnsnovNI2Lj4D8pr+YNs+zL5f5xChiLG8ZpYuwxvVHPaO0a+WE3pZhX+rHJcf+GmAW /Ce/WQsapC95nYmNQpi/n5Wb1jSsTgHV/xOU4EC59v9GZl5M1H9Yy8yYeuh7hzn2ly4G v4DatgvSedtYtYtMK3pC9p0+s4K9AkVX8/5HIs6iWkwY+EoNvS0JtZjmtc4gxApOw3XV hRrf9XgMg1UYuR4tyblwlSl603dlvTwncjHTzhT6mgv5Q3i3Wqj3yrcNd8ZbOiKVZyil xOvQ== X-Gm-Message-State: AOJu0YwaMuYLJOBGEzh1NfcfcjfHT+yQtRnP+tHvvy7i0FtZTUhcgL+k 9qEbgVEGnr1LyLAu9tHUfkOIlY0zbBnc8rWAzpgjwdsOB1g7esYdkBj/mOIvb6cKfNx/EdpNhqJ co4cB1lo2LxWvbq+n/H+8ikLUrw1nJ3IO X-Google-Smtp-Source: AGHT+IF7y5M+qmuNb/QPNcDzUJr7hWCy3/pqvOln+WLaqRm42idM6C5z0c8d/wDk990pgyFxVi1aq/CyffwjjB5h86U= X-Received: by 2002:a50:ef0d:0:b0:567:610:c862 with SMTP id m13-20020a50ef0d000000b005670610c862mr6381242eds.31.1709628409189; Tue, 05 Mar 2024 00:46:49 -0800 (PST) MIME-Version: 1.0 References: <1de1f9f9-f8ee-45bf-9c63-fd151b6714f7 AT maxrnd DOT com> In-Reply-To: <1de1f9f9-f8ee-45bf-9c63-fd151b6714f7@maxrnd.com> Date: Tue, 5 Mar 2024 09:46:12 +0100 Message-ID: Subject: Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever 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" On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: > > On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: > > 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. > > It's taking forever because it's in an infinite loop looking for data > followed by a hole, which is not present in a new file being created. > This is due to the '-d' option being specified. fallocate ought to > diagnose this condition rather than looping forever, but here we are. > > It's possible we have an old fallocate from an old util-linux package. > I'll try to investigate this further when I have time. > Any update on this issue? 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