Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5B2B922A1E5 for ; Mon, 10 Mar 2025 13:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741612888; cv=none; b=Xe/HQ4vMhSPqy3CFMz+wMgbJEyffL/hlNzV0QGRQQRdPHtpUjPBs9OmeteAcry+Csy0ZF7+ZZL/Td33tiaCnGxthkQOD7NAnuzIr4i8tmrFTNwzt1CjMLORO3U9rfvq9t5Rh58kmOwkSBeZ/QywJVDYO7epcC/Prmngfx9AYTPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741612888; c=relaxed/simple; bh=4/OtXCqF9kKaR7uY3JfTWl2t5U2tzOnzIr8LFnW7nC8=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=tRzKCDBkVhYuQbDdoEoGPcql/1AxxerhqLFRERO8Tn/p0VfLqmyZLp231af0WX/HOzGrMvgHKd8Z6tF8SUnPsVsH+e3tpRru3UbS0y/mlXIT01+ZJOoicACW9mfw9rhNIpgGc8/RMkYcbmH6JwCTgx7Lvkb5T9lhl6QaX7e/dBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u37GJren; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u37GJren" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1145EC4CEEB; Mon, 10 Mar 2025 13:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741612887; bh=4/OtXCqF9kKaR7uY3JfTWl2t5U2tzOnzIr8LFnW7nC8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=u37GJren+Y2Hwide8NJ3LysIiuiXI0R+qcFa0S50CMB8l+MS65qsRRdG9npA9i9lN GZ/McQ9upS+51j9I4WZTqZFMXNmY3Ipn1hyy7clg8rs+VKZvL74SSPbxa8p7gE62pV 8OgyCIYbs6ZrDbTdESKWsbGneBgCq+clfTaz5nYbtOQueJux8UXspRjpk4QPN5+tGA 6Qmpi6UMlwAd7O9ccCIYuAqd7k+cAWH21BeXYSpHr/oW4sU2o2CG/gokvad70FRkeU FBwleZKoYtf45cAQiDYEwpUWYGyAM9VPfCpowK+iPLEAPDqbZCRA0UIfyjOMMJJ89H XM/KprhhIRQdQ== References: <20250305211207.243174-1-cel@kernel.org> <87r03ah0tw.fsf@debian-BULLSEYE-live-builder-AMD64> <36b15dea-2d88-4c67-8db1-3e18217da725@oracle.com> User-agent: mu4e 1.10.8; emacs 29.2 From: Chandan Babu R To: Chuck Lever Cc: cel@kernel.org, Luis Chamberlain , kdevops@lists.linux.dev Subject: Re: [RFC PATCH] terraform/OCI: Create a set of multiple generic block devices Date: Mon, 10 Mar 2025 18:37:44 +0530 In-reply-to: <36b15dea-2d88-4c67-8db1-3e18217da725@oracle.com> Message-ID: <877c4xm36y.fsf@debian-BULLSEYE-live-builder-AMD64> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Mar 06, 2025 at 09:10:29 AM -0500, Chuck Lever wrote: > On 3/6/25 6:06 AM, Chandan Babu R wrote: >> On Wed, Mar 05, 2025 at 04:12:07 PM -0500, cel@kernel.org wrote: >>> From: Chuck Lever >>> >>> When provisioning on OCI, terraform creates one block device for >>> the /data file system, and one for sparse files. This is unlike >>> other provisioning methods (guestfs and AWS being the primary >>> examples) which instead create a set of generic block devices and >>> then set up the sparse files or /data file system on one of those. >>> >>> Luis and Chandan have agreed to changing OCI to work like the >>> other terraform providers and guestfs. >>> >> >> Apart from the nit mentioned below, the remaining changes look good to me, >> >> Reviewed-by: Chandan Babu R > > Thanks for the review. Obviously I forgot to test disabling the new > mechanism. > > I'm still wondering if the old data/sparse set up code is still needed. > Instead of fixing it as you suggested, I could just remove it. > > IIUC, we can specify the number of block volumes to create and attach (say 2) to each cloud instance and then we specify the appropriate device node paths as values for CONFIG_WORKFLOW_DATA_DEVICE_CUSTOM and CONFIG_FSTESTS_SPARSE_DEV. If the above is true, then I agree that we could remove the data device and sparse device set up code. -- Chandan