From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.formilux.org (mta1.formilux.org [51.159.59.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 987111DD525 for ; Sat, 2 May 2026 03:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.159.59.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777691052; cv=none; b=SbhQ2ogjJAtpCnfAqGUHy5VZZ07is06+N/tiM7tEgXsPK2U+eWMedNjBMN1XB+qAU3wjIMx18BDOkyIRA1hqkRS6Uuy/rx3QH9dAa3HRMpifqohdcRNy33QYKj/maG/IsKVX2iBb5K8Im2TACbMpQcWzqFrQVCu+kZeU4ke0TYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777691052; c=relaxed/simple; bh=oXtPyEJ0aRAmrqaxgi/XCGns2koTUIABEyeVXMOtyNE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gopWRKlM2VQQzQsoc60VDxXyjNShVaD98YusAD8EbW71E00khybYwKC6lseWcd9MWxNkOtYQRnxI404gLGGvMp17fvaAXplH+7Zj/SfRHYlt/iqXY+8KsZ17kQcny1fKUPnJyVsrEqEYdbMWDMUToa5lthCHRMQm++weWI5xvFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b=BHIcrZnf; arc=none smtp.client-ip=51.159.59.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b="BHIcrZnf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1777691049; bh=lL9Jf92m7dNwOz6wh50eftMvsij1YZIVh2ERFwuFb1U=; h=From:Message-ID:From; b=BHIcrZnfoMLxRtsuGr4/HkAOFVInPX8v76Gu3TyxhG34i/ek43q6BalPQgYmdLP+S kMKuB5uo72ETv97YLm/vd4mJUVDoYajnCfSvXuox+yti8q+S8SMZjiuvugKkNzWijM NBJKSHJow+fP3l4c4U14NSrU/Wi8ufIejnI/7uQI= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 237DBC0AB2; Sat, 02 May 2026 05:04:09 +0200 (CEST) Date: Sat, 2 May 2026 05:04:08 +0200 From: Willy Tarreau To: Daniel Palmer Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] selftests/nolibc: Add a very basic test for fallocate() Message-ID: References: <20260430164125.1106350-1-daniel@thingy.jp> <20260430164125.1106350-3-daniel@thingy.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260430164125.1106350-3-daniel@thingy.jp> On Fri, May 01, 2026 at 01:41:25AM +0900, Daniel Palmer wrote: > 1: Create a tmp file, fallocate() to make it a bit bigger, check the > size is what was expected. > > 2: Try to fallocate() (1 << 20), this should work. > > 3: Try to fallocate() (1 << 52), this should cause ENOSPC or EFBIG. Note that I've already seen one place with more than 4PB on a shared FS, so I don't know how long such a test could hold true without causing a havoc. I understand the reason behind the +32 though, and I'm not worried for the short-to-mid term. Willy