Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1365105rdh; Fri, 24 Nov 2023 10:40:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxSFS4NLHo3mPtSdAM26AX5B16XMS+1bITyJkMCoMeLDaou9TlPYjMt+xP1Y2Y62HBwQ6r X-Received: by 2002:aca:120a:0:b0:3ae:5c36:99b2 with SMTP id 10-20020aca120a000000b003ae5c3699b2mr3970835ois.55.1700851217263; Fri, 24 Nov 2023 10:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700851217; cv=none; d=google.com; s=arc-20160816; b=ma86w+N20GEernyrl0K/cJeLA/wv/o9345pIoEt+4L3KSGgo7lLhcMfCtZJZa5iWVP 9YcI4t12gNKZKptMonzwlmQafXn/qbBRtlS1y/K9V//u3h0wOIvjH5VF6ZOlvNQ2kO2L 0Op9ICApCJTyG1ALGsB29oGaPgy1WD/f7w2SZMaibSYFVTyY4SG2tliKnNWqRICfUV2D F66KJkgD7flxsk1QtLUdIQa+fzRhfe8zJ/mlIeWiZYmz2AIj/LXM2aWa4WiXR+b8EhLj u8GNcxeelZQnUy3sj1jgCCrLfgLPhcVHSveNjy3IcnWY72LjSHV9Y5UQh6K5Up76OaRy 5iZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=n6dMaBnN8wPxxEjM8N0CTPmBnvpOexlwMzfQXUjTE8U=; fh=gG+N0ES3yTyjHHtzJwbDjYhl/eUN69tv/GAF2fCxn8g=; b=vwHi8ACRw03SA8AlIS4bZqbLh/49BKdQfVZjOwVadSZRHrJaHHg8bb37Up6ZpVJ8lP KeymaMiVq717uwC+ZmgjPsVg/bdPWU4WIDHWuHzH/XH9Ot21l/lGQRT0kbhMnnIzGM3u 5T7nFGd2sSuIxi6clFPUi8DJfQA4yH3eO0IJnAlqElLkqM9uD5y5St4JQ0RgTi2Na1oq N4egn9JT3cJz5+CeY+ZHtb+sKG0nF9ItBh7e5GdhCTfzntrjMGn7zVUmWITjSfu9uyJB FF1Pcx2FMsU0LvG0SvOszJPkeR65Ks4K1P5GJpVZpyl0pMHq0IZUS1G65sjV9oKGa4AN WNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=P4WwO+D7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j25-20020a63fc19000000b005b8f5718605si4220093pgi.48.2023.11.24.10.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 10:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=P4WwO+D7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4764E80A8B74; Fri, 24 Nov 2023 10:40:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231228AbjKXSkG (ORCPT + 99 others); Fri, 24 Nov 2023 13:40:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjKXSkF (ORCPT ); Fri, 24 Nov 2023 13:40:05 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC0EB2126 for ; Fri, 24 Nov 2023 10:40:10 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50797cf5b69so3015720e87.2 for ; Fri, 24 Nov 2023 10:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700851209; x=1701456009; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=n6dMaBnN8wPxxEjM8N0CTPmBnvpOexlwMzfQXUjTE8U=; b=P4WwO+D7apZBePL1C5YgXrneQu5IVGUSqxZLcXpMu+huujzgzVvDCLmxVJHSPHamga G9zvX/p+6n4NB8ZtJwoesfdplhfIPT0roKRnDxxA1dahtXIoYtnq8qlEZ6yvvbam3dKg HsMchHogW7CobpjAI7pBLMxQjqjo3s618Nwo8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700851209; x=1701456009; h=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=n6dMaBnN8wPxxEjM8N0CTPmBnvpOexlwMzfQXUjTE8U=; b=l95FEcWD2bCVWAgQ26iznZM/4m3rmxuNq46Hm73WmcNL9P7iTdTmcukJ/1ksqGvfJn VTSRnVdjgyauZs0Uk7+0yGsqLFyErf0SOBNpRX9IVJ3hJSCbeVfYsyqCeTuwOFgCLExv LNwWLUljRhBYGCVSBfcCOKxU3VXubIHXQ5wLv2LzYtiplHv0G/myPWgXhbQ9Mw7a3t7l BQ4lelqKsaXarxBjc79Qa3wmQgcDGptHEHniBbuH7QE0LxQuXaudlqh6GvgjJogQ95dG 0lWkDm1BnTr5dbeXnqkXDJjkaiGlLSqNiPGSdLgYRWkLMbOysUCHpUQ7JK75/Vop/DVb CzTw== X-Gm-Message-State: AOJu0Yzc5v2UsTfNfnx41L7MB5KgjY2nPgMrBVkvPr6GegZ8/OC2abEk KYJnDI1v3T/zc1M0OmnvYzEpfMFEZSjrQcVT9LYIjw== X-Received: by 2002:a19:5514:0:b0:50a:aa87:652c with SMTP id n20-20020a195514000000b0050aaa87652cmr2661597lfe.65.1700851208764; Fri, 24 Nov 2023 10:40:08 -0800 (PST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id w7-20020ac254a7000000b0050ab61a09f3sm571704lfk.104.2023.11.24.10.40.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Nov 2023 10:40:08 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2c50cf61f6dso27393301fa.2 for ; Fri, 24 Nov 2023 10:40:08 -0800 (PST) X-Received: by 2002:a05:651c:1208:b0:2bc:c771:5498 with SMTP id i8-20020a05651c120800b002bcc7715498mr3557404lja.18.1700851207707; Fri, 24 Nov 2023 10:40:07 -0800 (PST) MIME-Version: 1.0 References: <1205248.1700841140@warthog.procyon.org.uk> In-Reply-To: <1205248.1700841140@warthog.procyon.org.uk> From: Linus Torvalds Date: Fri, 24 Nov 2023 10:39:51 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] afs: Miscellaneous fixes To: David Howells Cc: Marc Dionne , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 10:40:15 -0800 (PST) On Fri, 24 Nov 2023 at 07:52, David Howells wrote: > Btw, I did want to ask about (5): Does a superblock being marked SB_RDONLY > imply immutability to the application? Obviously not - any network filesystem can and will change from under you, even if the local copy is read-only. So SB_RDONLY can only mean that writes to that instance of the filesystem will fail. It's a bit stronger than MNT_READONLY, in that for a *local* filesystem, SB_RDONLY tends to mean that it's truly immutable (while MNT_READONLY is obviously per mount) but even then some sub-mount thing (and I guess the AFS snapshot is a good example of that) might expose the same filesystem through multiple superblocks. Exactly like a network filesystem inevitably will. In any case, any user space that thinks SB_RDONLY is some kind of immutability signal is clearly buggy. At a minimum, such user space would have to limit itself to particular filesystem types and say "I know _this_ filesystem can have only one superblock"). And I'd argue that while that might work in practice, it's insane. Linus