Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp613191rdb; Fri, 17 Nov 2023 07:57:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmo4r/kl2PdHXcUpRn32YE4EbdWd5teNDkNF1ZcVEUmxx/pDXBV3rP/7oz3gHAl4vHsGXz X-Received: by 2002:a17:903:20f:b0:1cc:70dd:62e7 with SMTP id r15-20020a170903020f00b001cc70dd62e7mr11413045plh.32.1700236623117; Fri, 17 Nov 2023 07:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700236623; cv=none; d=google.com; s=arc-20160816; b=PQsQTavm58jlPVYqrZQ9STBb+0tp9UtzzRTZ15oBGnCZL0WECF78me/F8/tjJnzOs3 oduxUgccso31FNSJVvpdrGPXm4nRPA47RmJaWJM31UjHIyGztuVrGReU02zny/+Jgt8K ymjVjoxMihUDGrtL23zYbIBJwvUvlMn8tuOAzsEZ65/YAa1IhVbpz20Gf4R5Osl0OFAi 7ElTVOGcDhBWUw7/tR2uVzQ69BWx9My/lMlP7zTVlChfSqfzK8crpJIHDLKQYsEcm2Ua 9Co95gNucAn7BQbgGzIAXIPqy7XJGkYtGsk2N7H9mwn0jQqwPdti09Nq8r1DBYQ/P0Fd JmJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=+aX+9wvJAY1Z6lxgZ5rMTYGBGNY21JhJYQc1EX3Us9A=; fh=20CwuCdTqc/M7aUNuGvc7MigwPvKHVIP79cSoTphTxs=; b=FIzdxFxPFUWdnWvtGLyFmn/nzFpcHwzXLo9yg+Mrjt9bciICyIjjWZ0E9hrnmO8COA S5dFEgAyuYVXdxL9dGOvgpMz+yotsXnNts6i7yCCWcZrQOY5F5OMetbV/CmBokA4hruX FV7TpNaYlxVCi5n2HYK7UfA5tosMJgea3+hz/L6DpISy5f2RDh0m4g+N5djf2n7txJMi EaO2uXwuxpQJ5tRQf4STBouCDaMKGzNQmQQXB3HDmIzVStIrZYFu9ksWiekyzJ+pPx9P VGL/6ANtOZgQvvKk3KJJxttHzxSBYYGObLA84vhP17Pd0zwBZPuAkQHGEVexqacgBXDQ LSzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=auristor.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ju5-20020a170903428500b001cc76bea519si2024497plb.87.2023.11.17.07.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 07:57:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=auristor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0F0DA8082DF4; Fri, 17 Nov 2023 07:56:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231473AbjKQP4Y convert rfc822-to-8bit (ORCPT + 99 others); Fri, 17 Nov 2023 10:56:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjKQP4W (ORCPT ); Fri, 17 Nov 2023 10:56:22 -0500 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B534AA; Fri, 17 Nov 2023 07:56:19 -0800 (PST) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-9becde9ea7bso654107866b.0; Fri, 17 Nov 2023 07:56:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700236578; x=1700841378; h=content-transfer-encoding:cc: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=oexZKi4jraVZMBko6mtbaiC7v5lb9xeMULv/R6WBNzs=; b=jit75G0yw5bafT70oA///ru6t2isK3BcPtA3w0b9/+N9nJu7xilpv7PmBc8P+pvdin Zw+axdAFQvAYXJVh6WHYC/nWkDHlpZy7sVq+fxHOxBFdiQihTaSYJlR8ZfEkl/PqPvir do0jHbZQdJfdP+aumg0IGUDIVfxZugWBqsYcAd9hYqkjAGqtPbwca67Fe9hXJH+zt100 JUTIgDRJbMFgY0QuiMRR7CPi8hy3THKRrc3nKMRYg9o4/cO+tQJlKWIoZf+/Tt7QP23d 6EGl4DNZFCJLkNn3kbVRrGpBeSdC+6+5xYG81x4yHIm7MAesmBUyysJ181ztwwsWtIw/ IEqg== X-Gm-Message-State: AOJu0Yy3seeNQ8BQGsJ7Moeevc1Q/Cgr1ammdjLr9qRD9k2YJMDEkfFB /JiaXDgKidRCl5XCoVPN20CVqz9L7hw5TQ== X-Received: by 2002:a17:906:fcc2:b0:9ad:8a9e:23ee with SMTP id qx2-20020a170906fcc200b009ad8a9e23eemr4989418ejb.13.1700236577705; Fri, 17 Nov 2023 07:56:17 -0800 (PST) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id gt2-20020a170906f20200b009aa292a2df2sm903782ejb.217.2023.11.17.07.56.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 07:56:17 -0800 (PST) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-9df8d0c2505so411706066b.0; Fri, 17 Nov 2023 07:56:17 -0800 (PST) X-Received: by 2002:a17:907:7e94:b0:9f2:859f:713e with SMTP id qb20-20020a1709077e9400b009f2859f713emr5983220ejc.3.1700236577239; Fri, 17 Nov 2023 07:56:17 -0800 (PST) MIME-Version: 1.0 References: <20231116155312.156593-1-dhowells@redhat.com> <20231116155312.156593-6-dhowells@redhat.com> In-Reply-To: <20231116155312.156593-6-dhowells@redhat.com> From: Marc Dionne Date: Fri, 17 Nov 2023 11:56:05 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/5] afs: Mark a superblock for an R/O or Backup volume as SB_RDONLY To: David Howells Cc: linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 07:56:30 -0800 (PST) On Thu, Nov 16, 2023 at 11:53 AM David Howells wrote: > > Mark a superblock that is for for an R/O or Backup volume as SB_RDONLY when > mounting it. > > Signed-off-by: David Howells > cc: Marc Dionne > cc: linux-afs@lists.infradead.org > --- > fs/afs/super.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/afs/super.c b/fs/afs/super.c > index e95fb4cb4fcd..a01a0fb2cdbb 100644 > --- a/fs/afs/super.c > +++ b/fs/afs/super.c > @@ -407,8 +407,10 @@ static int afs_validate_fc(struct fs_context *fc) > return PTR_ERR(volume); > > ctx->volume = volume; > - if (volume->type != AFSVL_RWVOL) > + if (volume->type != AFSVL_RWVOL) { > ctx->flock_mode = afs_flock_mode_local; > + fc->sb_flags |= SB_RDONLY; > + } > } > > return 0; Reviewed-by: Marc Dionne Marc