[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51425: file-system: validate flags
From: |
Maxim Cournoyer |
Subject: |
bug#51425: file-system: validate flags |
Date: |
Wed, 27 Oct 2021 21:31:35 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
Jonathan Brielmaier <jonathan.brielmaier@web.de> 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
bug#51425: file-system: validate flags, Ludovic Courtès, 2021/10/29