From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B3E7C19F2D for ; Sat, 13 Aug 2022 01:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234639AbiHMBL0 (ORCPT ); Fri, 12 Aug 2022 21:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbiHMBLZ (ORCPT ); Fri, 12 Aug 2022 21:11:25 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5205DB03 for ; Fri, 12 Aug 2022 18:11:24 -0700 (PDT) Received: from letrec.thunk.org (c-24-1-67-28.hsd1.il.comcast.net [24.1.67.28]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 27D1BHZR016788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Aug 2022 21:11:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1660353079; bh=7RgUoYdHb+gOPGegkR0jRJMJusGBIJi6cjgjdNII/Os=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eyq4+dZk7a4MI0+v9yDDHWdoc2mfQr3WNYTXLfG2oiqNM1pJDwbIUItVPe/2wqC2D c+hi9o/T4I7AODyt4YZZmlYbfQF87pxrp2Ta0Afspn+PaGlhjbBg4fLQhQ3Ph1LD4s WFixsUhO5yrmvGy7pVsy0MnDGd2FQZEGMjLz2dfCK4KXie7CTEQlXMqPOW2PPrnPGe yhgrGq7s0VinadnDdinWXEcaBg7E2iSKxUNhjBZNCO4O586e7Eqq2orBYCB0XfDuKM 7vcnl9ChZCUdL80dgtYDvaCOzpsduwCcgYOWACsanHmBVXE9OGlSmStKiunlKJDlcF Mct0WCQajUIDw== Received: by letrec.thunk.org (Postfix, from userid 15806) id 56A388C2DE9; Fri, 12 Aug 2022 21:11:17 -0400 (EDT) Date: Fri, 12 Aug 2022 21:11:17 -0400 From: "Theodore Ts'o" To: Michael Hudson-Doyle Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH] resize2fs: open device read-only when -P is passed Message-ID: References: <20220526010828.1462397-1-michael.hudson@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526010828.1462397-1-michael.hudson@ubuntu.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, May 26, 2022 at 01:08:28PM +1200, Michael Hudson-Doyle wrote: > We ran into this because we noticed that resize2fs -P $device was > triggering udev events. > > I added a very simple test that just checks resize2fs -P on a file > lacking the w bit succeeds. > > Signed-off-by: Michael Hudson-Doyle Applied, thanks! - Ted