From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GE+VEqX9eWGiAwAAgWs5BA (envelope-from ) for ; Thu, 28 Oct 2021 03:32:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kMhXDqX9eWGfJQAA1q6Kng (envelope-from ) for ; Thu, 28 Oct 2021 01:32:21 +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 D016E137B7 for ; Thu, 28 Oct 2021 03:32:20 +0200 (CEST) Received: from localhost ([::1]:54332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfuHE-00060b-0Q for larch@yhetil.org; Wed, 27 Oct 2021 21:32:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfuGw-00060A-Mo for bug-guix@gnu.org; Wed, 27 Oct 2021 21:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfuGw-00046Y-DU for bug-guix@gnu.org; Wed, 27 Oct 2021 21:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfuGw-000236-8v for bug-guix@gnu.org; Wed, 27 Oct 2021 21: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: Thu, 28 Oct 2021 01: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: Jonathan Brielmaier Received: via spool by 51425-submit@debbugs.gnu.org id=B51425.16353847047845 (code B ref 51425); Thu, 28 Oct 2021 01:32:02 +0000 Received: (at 51425) by debbugs.gnu.org; 28 Oct 2021 01:31:44 +0000 Received: from localhost ([127.0.0.1]:50917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfuGd-00022T-VB for submit@debbugs.gnu.org; Wed, 27 Oct 2021 21:31:44 -0400 Received: from mail-qk1-f173.google.com ([209.85.222.173]:38810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfuGb-00022F-Vu for 51425@debbugs.gnu.org; Wed, 27 Oct 2021 21:31:42 -0400 Received: by mail-qk1-f173.google.com with SMTP id bi29so4362532qkb.5 for <51425@debbugs.gnu.org>; Wed, 27 Oct 2021 18:31:41 -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; bh=dg09e+ZlXTcX0AYh7sXmh0SQVVkeIRqakaI6csSyOPY=; b=IqE7ICqa+9hBsGEWvuccDfQaWsmdVLzgVrhaFJASIFkRuoQrBi/5v95AL8znlQc7na CVKZQRNOZ9xiIzMj57O2hmyvnTem0z4aJ6kKMOpHfG0rwZWC2gwhtpy3GS7BOS1wxdpG qG82IyGu1zzoz4/Cyz/z1hosv5UXlvTU5Z4GMCGzvAPWYeGdlgcXtJrIOuNKxCjdkHHM NIu4T503atz+EJeQwRlPfHMZVTi2T6CWFYcz6Ja/b7SZkz8HHzsiLT8NDa25wMfjOcfB cPekDTk5cLWrAwd+TIJJPR2QpbgwNcJ0pb65ZLOXoWMHTakH//jrjBda0GYUqC12Ob1J 6u8Q== 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; bh=dg09e+ZlXTcX0AYh7sXmh0SQVVkeIRqakaI6csSyOPY=; b=FtZ9TAOF3zVIQlU6ILY3bcyM5FktI225nxiPxde8DLC6Y0S6ec+Q8iCKyB1Bq8Ve21 Ipy7vMNLg371S+ifSgg+H4loQyjUOcz9wjRwy4URpbyuPCqd0rlwnvLO9vkPe049zp0A pzXisywvgkd68EagyUJZGoL1TCCUFXuzYYL11ywkpgvo364UXbEyRkJRws5MqDkL2r2N eTmP4/rOmsebGYqnfArLRc/Ei0H8j0mqx4upa45v9+g5vy7Recu7kzZaw2mWWCQeOX4U 1ZFwGCQL8Dw4Ow/in8j8QOAhetGuLZcNZvX9sAf66FzOAUs6iJW03OpFNtxHAcIlGFkC PGig== X-Gm-Message-State: AOAM531o97YQHI3ZPtxF3t6izn9kFXk1ao/BZw8llZmQANOVvp17n577 m2IZLZ1TTGEHe/rvzDvF0PDdE3GZJZQ= X-Google-Smtp-Source: ABdhPJwykBULSevvy0nnIylKJg/PbrpHzd1+JHcxsisoVl0eHP28DzO8cxALgTo4HS6X7CBJp9HcLw== X-Received: by 2002:a05:620a:24cf:: with SMTP id m15mr1099726qkn.434.1635384696336; Wed, 27 Oct 2021 18:31:36 -0700 (PDT) Received: from hurd (dsl-152-69.b2b2c.ca. [66.158.152.69]) by smtp.gmail.com with ESMTPSA id g11sm1268647qko.31.2021.10.27.18.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 18:31:35 -0700 (PDT) From: Maxim Cournoyer References: <33625107-5cf9-85f8-9025-2b9f186723bc@web.de> Date: Wed, 27 Oct 2021 21:31:35 -0400 In-Reply-To: <33625107-5cf9-85f8-9025-2b9f186723bc@web.de> (Jonathan Brielmaier's message of "Wed, 27 Oct 2021 00:24:28 +0200") Message-ID: <87zgqu9bpk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 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=1635384740; 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: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=dg09e+ZlXTcX0AYh7sXmh0SQVVkeIRqakaI6csSyOPY=; b=bpmXVXReixf7U9dMnU8kJtgWWNrRREZFLRLllackrva6x3iaIZeiPl+7Cr8g1kwLJdCvDc SG6M8oa5CPFF7yueFjVggQciie4bVK5L2srPl35dwtQ28HNru77lt/KARN2S+bflVWUETS TrNCZUZmCTkWGbmoDMj1hMCVuq1W5OoFijzR4jlQCtdmD/mwh2UrYBixiHFn6WOnQ/Sipr jzKswstYIrmc/nYl434jpEewPtpDYOi6BBgHNOel9nYzb9sTd5b2uyfrwxBVFHMje7igTM l+gVsX3pM44f6Q5rZ+fKrl5T7Q/uQp55mHsn+kYV6SVIpNwKpeGumX+2tVHIwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635384740; a=rsa-sha256; cv=none; b=V2vOCLg1XWzR7TFBuqJ6b8tFJLmN/2R78OYdh911O+WV599+L6U48vgAb4PBL/qs8WLmz6 H0w9vZBsw5bufcJ0tkIkSREmoBznendm4J9JrdiDAIu3lqwk31ArSdL/BUldFgwcW6KAEu Pg0pxLa1HEIg9nCH9sZnQ9bHKsVgXiPtZ2U3AgyoBBU76jz+A5fzbrcQJgC94koF3ZDmn1 4saHu0l5BgEAn99UyLbhHEBmbfV40jxXlaBokextOzWS4Qx09DPl+RJhPKYiEbIBqSt3hI T635rDzt6+0w5skl60upvUsSW6LYnFUFBwz+UaBv9e4JRmCYCYvrbp8MtHXV1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IqE7ICqa; 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=IqE7ICqa; 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: D016E137B7 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2ALxoh1LjqNM Hello, Jonathan Brielmaier writes: > Imagine the following file system definition in your config.scm: > > ``` > (file-system > (device (uuid "UUID-123")) > (flags '((create-mount-point? #t))) > (mount-point "/mnt") > (type "ext4"))) > ``` > > When you reconfigure there will be no complain, but when you reboot your > system wont boot. The parameter to flags is nonsense, it should be > something like: `read-only`. So mounting of the file system will fail... > > It would be nice if we can have some flag validation during reconfigure. > > ~Jonathan I agree that it'd be nice; I had gotten close to implementing such a thing in the past, but it was discussed and abandoned because each file system may have their own flags, add new flags with new releases, etc, which means it'd be difficult to keep the list accurate. That's if my memory serves me right :-). Thanks, Maxim