From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WIu1OTQAfmFXDQEAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 03:32:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gll6NTQAfmHSEQAAB5/wlQ (envelope-from ) for ; Sun, 31 Oct 2021 02:32:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B02C1A23A for ; Sun, 31 Oct 2021 03:32:20 +0100 (CET) Received: from localhost ([::1]:36028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mh0dv-0008Ow-OD for larch@yhetil.org; Sat, 30 Oct 2021 22:32:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh0df-0008OZ-1z for bug-guix@gnu.org; Sat, 30 Oct 2021 22:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mh0de-0001bM-LV for bug-guix@gnu.org; Sat, 30 Oct 2021 22:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mh0de-0003nr-IY for bug-guix@gnu.org; Sat, 30 Oct 2021 22:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51425: file-system: validate flags Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 31 Oct 2021 02:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51425 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice X-Debbugs-Original-Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , bug-guix@gnu.org, 51425@debbugs.gnu.org, Jonathan Brielmaier Received: via spool by 51425-submit@debbugs.gnu.org id=B51425.163564751314122 (code B ref 51425); Sun, 31 Oct 2021 02:32:02 +0000 Received: (at 51425) by debbugs.gnu.org; 31 Oct 2021 02:31:53 +0000 Received: from localhost ([127.0.0.1]:58735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh0dU-0003fL-Fv for submit@debbugs.gnu.org; Sat, 30 Oct 2021 22:31:52 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:41880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh0dP-0003Wh-8Q for 51425@debbugs.gnu.org; Sat, 30 Oct 2021 22:31:47 -0400 Received: by mail-qt1-f175.google.com with SMTP id g17so12897675qtk.8 for <51425@debbugs.gnu.org>; Sat, 30 Oct 2021 19:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=GjysnqDyhyO+7WtuE32/fzbKjvw7lzls/mxDEDRHRos=; b=XH/mzFmcJSDSsRCiKAeVrcRkTDjSpB6RidgtmtxdJMENnPTYvLEgYF78lkE+PB0Bp8 qdWnDTjgJ0QFgyecnYXl5AJ0A8hlS5h29d6ozArtpSfnMoH4qhsRz0sqZiyuloRAd4D0 d8sTlepzjM3C6IFEy/+ULFs0YRdDObyAv799hgN5yuIcuFVYQwrpFGkD4M85J5CaUMks 6pP8zdHiS0GZjWdfOEnKHzmX2/wyXWeqzGBPl+eBNdYdm+sihsEwexjLQiVdURQpY6VU 5qHUyqdOJpEcW2TSDXQo8QoN932bZ9g6zoDlxRWNJAhMLmksnlE44O6TZnsQ7fMYbP5T 6uHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=GjysnqDyhyO+7WtuE32/fzbKjvw7lzls/mxDEDRHRos=; b=T3vtwOpXVqqg8WACgDE7fKSnLvwCl3s63/jig00rVmgKOxjiZxjDT/1c31MyE2v8vD QhoYHgsuIlK32obijgaKhJ0NhWsEiQo54q24xCqnGu81U+KsNiCvtYPnOme2gVOQ9x4j 9jvEnU69DEbKS9UM03bQYMs3MKIk3KN8i2g3d09A8vlxEqIsxMWy+RhChDMnbW4Q3wIn Yq8O8a2tE6Kc8a2KVhdS0LIEw6ol0kq/Biw14whBN2sJOt+KZxyY/cvRh4JJZHC8o1Qf BWJiIZrS1cbCau7SqcfifjHtUkmgq3mnfl8oBI1vXXW2vlUqhFPYw2seoBsPWLazFFZD KLIw== X-Gm-Message-State: AOAM530Y3kCb+zDrxp4Jgm9jqyqol7LJ/Yw8z+fc/RYMQQ8648GtMcKq pWSNdDT8+RRdOAnmvt8W6mc= X-Google-Smtp-Source: ABdhPJyP1sxw0LGZadvvfgNhVXjWVwygwX6Vygt4cT6/6Uzegufy2Mw8U+Y04vpfG4DRES7pL03wjQ== X-Received: by 2002:a05:622a:1109:: with SMTP id e9mr10741131qty.86.1635647501790; Sat, 30 Oct 2021 19:31:41 -0700 (PDT) Received: from hurd (dsl-148-192.b2b2c.ca. [66.158.148.192]) by smtp.gmail.com with ESMTPSA id h12sm7367523qkp.52.2021.10.30.19.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Oct 2021 19:31:41 -0700 (PDT) From: Maxim Cournoyer References: <33625107-5cf9-85f8-9025-2b9f186723bc@web.de> <87zgqu9bpk.fsf@gmail.com> <87lf2bipgp.fsf@nckx> <87fssj8hnb.fsf@gmail.com> <878rybib00.fsf@nckx> Date: Sat, 30 Oct 2021 22:31:40 -0400 In-Reply-To: <878rybib00.fsf@nckx> (Tobias Geerinckx-Rice's message of "Sat, 30 Oct 2021 02:48:50 +0200") Message-ID: <87zgqp7wmr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51425@debbugs.gnu.org, jonathan.brielmaier@web.de Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635647540; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GjysnqDyhyO+7WtuE32/fzbKjvw7lzls/mxDEDRHRos=; b=G74qBHQadLMwkBToofatbjKcBfbKAZHtDzAQGZELKdrNv4Kd89nRCFNjs5qcIQpb6nBUCm cZV5ryiAc25nEOl380xRl0EI8R2N2SEY4aw5sB2CVHtdJbnYzEn0rgs4ms5iWuDrYkIgny hzIpcj9JMcDpsWbylZopnS5bs1X9orfCVlL2F5dlANo0al9KIIWPttVdebaVALIy8xVIbN tT0L4p0fs3n6BUOtYBRdik822HhX9fGM8AQMIYMtXGnjNcw7NExrbhtXmrEzZTWjiekF6O qrISB7Y+sooq6D2LXKKVVF7OmGg4YId8Zxtz4jjHUpGQYTkzhPw66bPYRoYfEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635647540; a=rsa-sha256; cv=none; b=koyMNYINbV2Zz8i9cPV+DOe21N+TlydvQW50bVPKjcT5LMX0zCT9a0ZtHmqVHivzhw+rDQ NU72Ct1g/1xC68X6PbhVKiET1zhW38jptSFr6JPxtmbvUNwn0MXJNISdie3/4M01wZkCiJ 4YhvEL+o7ueuXkLB66KpwrdacpTSqHKDxqRIqszCD2w1VI7aFqQlDTeEaexiQ/nlt5URM+ TBDMIyvpsCM8dknkZ6IzQNpn3LbLn9WHwJRpwtwQxAKN5Rfiqy196hZGAiyN1l7ZhjFys5 YNi7yMWuhAclDAxfda0w4XJcu1OtnWTDiAgoNISFFe7/oVgE8Gwks5b0see2zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="XH/mzFmc"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="XH/mzFmc"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B02C1A23A X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: QwV9Y4KAY1U0 Hi Tobias, Tobias Geerinckx-Rice writes: > Maxim, > > Maxim Cournoyer =E5=86=99=E9=81=93=EF=BC=9A >> Another thing that is tricky about options is that some of them are >> only >> really understood by the 'mount' command line utility, not the >> 'mount' >> system call such as used in our init RAM disk (both are thrown >> together >> in 'man 8 mount' without an easy way to discern them apart, IIRC). > > Aha! Let me introduce you to the only slightly unfortunately named > =E2=80=98man 2 mount=E2=80=99 instead. Eh, I'm not sure why I hadn't thought about that myself, thank you! It makes sense after all -- one man page (2) documents the options for the system call, the other one (8) for the command. > The way mount(8) lumps both together is=E2=80=A6 I guess it's user-friend= ly =E2=80=94 > in a way? =E2=80=94 but it leads to this total confusion about what's wha= t. > Think of flags as literal bit flags, mainly because they are. Hehe. > Guix does make the distinction. It's the right call but it leads to a > brief education moment the first time you encounter both fields. > > You're absolutely right that mount options OTOH are arbitrary strings. > They can't and shouldn't be =E2=80=98validated=E2=80=99, but we don't cur= rently > mandate their stringiness, and should. Makes sense. Thank you! Maxim