From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 898A5201025 for ; Wed, 12 Feb 2025 21:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739395419; cv=none; b=h6WgNRq37Fec77kp+p2XQ69vHTVGwswaxVD6SxQx/jufZ67xkfUjDOZyZIG8pEKGXscbq1xDSv6qUe61CIzom/CuhRsmuZBVNClWvzV++sxaMu46PyURL9rwpUuUTEVnvHm4TaiKM51pboN4fRzi5X6/4aUsZFbKHCyZsrl/MKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739395419; c=relaxed/simple; bh=Hy2r0elVz1dNaH6kTrp/cVsXskL5R2B2kHanuTCM4kQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HJfE5SC+GBpYa59g9YxtggpxZt50u9heKrx7tD8nFqQWKJah3uDX05b9zlqhKhnX0jESYEW5SbstSbeLodg+qOmYzfvC5O4/06icn53CJnjvKEs7eS46FsDZUwqzXJOhkFdDD4FqxEXoqhhD4T5G7pJAA3A2JdV8vjPQCairktg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=T5vgbcPP; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="T5vgbcPP" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21f5660c2fdso2313285ad.2 for ; Wed, 12 Feb 2025 13:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1739395417; x=1740000217; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DnWJ9ncHwe6ht8H8YTq86uwEtd3hGCr8wLzk0vFKje4=; b=T5vgbcPPmcNEygj7xxbAWZJ+tYuxFaYlP68nzftNISpR4yunrRg88SQq+m1iSy/nC0 5DiLtsVehx7wf7e7NSdzUjVBRKq9vABcaib41ctk9SNs+fN6fIOGeGLs5GxqSmoqEFnb uEy71h1vGgOFlJoo3dh/ZVi6Tr7EgUEt+Hp/ga+494935OWDnxbRzm/g+reeSIZVQBox df2mmJrs9KX9Pb6im7LBYKbxw5CDxxAHLKOJCfk8L1P4683Om000dUkQtpeDNxLsgCJT mNUvfj237aGbgMV2jsAZHxQCW1mzigTWFxsKb8hjRKz3+PIMXHWtaIhf6XkxMtzs6Gn+ xXtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739395417; x=1740000217; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DnWJ9ncHwe6ht8H8YTq86uwEtd3hGCr8wLzk0vFKje4=; b=RPyPa2sWlSD2j8q8Xb15DVhCKKeCVea1lJ3n4x8LL0umK4FpvdqJuj4aUQDwC9Wdno k4fT/WVHFMJjJD7nr7DBMmqwvQyzZgyWWNMaTWg3bXnPYOJIFjAyzD61D6keIhXt1kyf ekjyHYpMVlTNxkXV+stQFs0E80MAdzOmUQlBUjltQPxMAFFTeuYxg04V6jCt9GCkzOk9 3w1ImfRLU3vBep5nE6EzNTo0Cemq8xTRYO2TFl2T1d/lSMVYFlCu6s/x5qJWaxpx0n/w dci/BU7W+zNssQbmD8xEEPFDK0ILfexZrvQOPTrclvKYeNBgio2xoVc5DnAHLoYA1TDi XlVQ== X-Forwarded-Encrypted: i=1; AJvYcCUhEDNLEjk0luhJN0les1EbkoXrvIWIW8aGtuwa4dERifHvpjlvpN5kaCCzn86PxNIdCBXiAVNwCGaF@vger.kernel.org X-Gm-Message-State: AOJu0YzN2oy0+lk54zHHvh7pg5oamp27Mg28w3gXiw1ehqTbMBcEosOx JxFMyvR+HbC4zuu4uFMG35bjHRIe+n9ZqFihI3PLmv5rveKvWhlBw6n6iiiWxCc= X-Gm-Gg: ASbGncto8uksg8TaFH42jXSVNuvoXDi6ef0HyQQEELSlDVushTosmdXQ1UBQGYDs8sD EBcpP5RST8+jbyycTlElFGn/8qQLQfXOYMKYr+iYKDQZ0kPLhVSnCjGibVOx/MHKPmKzFNYmiTr EVF+Vm2jLXA6l5jOoOB15xGhqc8X1Qzu1i5ERZEajKT7bGcmlMBGNsfWJfWuEusiZY7nR+Yihym u2/aCChgJ4SBfaSC6tq//+mvutXdBTjN/Kaj1URafq+XHwkW3l9D9VudQClGFvFjc/J15NzRPvd kTo5H2iY1z5moWzamwdTPfyRg4o6LFD6gl7Xp9RJ5EmOtbtTTmYA7eSH/1tTINgGZ74= X-Google-Smtp-Source: AGHT+IEYqdmFI/8uZqwemYkPrJk0UIjGmcrIHb9Mpfb2ciK6bkr9nytSyUNC0C4qGkZnmqnJZ6k5rw== X-Received: by 2002:a17:902:ef11:b0:21f:5cd8:c52 with SMTP id d9443c01a7336-220d213e655mr13788095ad.53.1739395416777; Wed, 12 Feb 2025 13:23:36 -0800 (PST) Received: from dread.disaster.area (pa49-186-89-135.pa.vic.optusnet.com.au. [49.186.89.135]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d5363848sm118065ad.55.2025.02.12.13.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 13:23:36 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.98) (envelope-from ) id 1tiKCi-00000000RUB-3uBx; Thu, 13 Feb 2025 08:23:32 +1100 Date: Thu, 13 Feb 2025 08:23:32 +1100 From: Dave Chinner To: "Nirjhar Roy (IBM)" Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, ritesh.list@gmail.com, ojaswin@linux.ibm.com, djwong@kernel.org, zlang@kernel.org Subject: Re: [PATCH v1 2/3] common/xfs: Add a new helper function to check v5 XFS Message-ID: References: <61a7e3f25621548ec3ef795a3cd0724e32afb647.1739363803.git.nirjhar.roy.lists@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@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: <61a7e3f25621548ec3ef795a3cd0724e32afb647.1739363803.git.nirjhar.roy.lists@gmail.com> On Wed, Feb 12, 2025 at 12:39:57PM +0000, Nirjhar Roy (IBM) wrote: > This commit adds a new helper to function to check that we can > create a V5 XFS filesystem in the scratch device > > Signed-off-by: Nirjhar Roy (IBM) > --- > common/xfs | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/common/xfs b/common/xfs > index 0417a40a..cc0a62e4 100644 > --- a/common/xfs > +++ b/common/xfs > @@ -468,6 +468,19 @@ _require_scratch_xfs_crc() > _scratch_unmount > } > > +# this test requires the xfs kernel support crc feature on scratch device > +# > +_require_scratch_xfs_v5() > +{ > + _require_scratch_xfs_crc > + _scratch_mkfs_xfs -m crc=1 > $seqres.full 2>&1 || > + _notrun "v5 filesystem isn't supported by the kernel" This is testing mkfs.xfs, not the kernel. We already have a helper for that: _scratch_mkfs_xfs_supported() > + _try_scratch_mount >/dev/null 2>&1 > + ret="$?" > + _scratch_unmount > + [[ "$ret" != "0" ]] && _notrun "couldn't mount a V5 xfs filesystem" > +} This doesn't actually check that the mounted filesystem is a v5 format filesystem. That's what _require_scratch_xfs_crc() does. Hence I don't see what this adds over _require_scratch_xfs_crc(), which does the right thing on any mkfs.xfs released in the past decade (i.e. when we changed mkfs.xfs to create v5 filesystems by default). What test environment doesn't _require_scratch_xfs_crc() work for? -Dave. -- Dave Chinner david@fromorbit.com