[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51425: file-system: validate flags
From: |
Ludovic Courtès |
Subject: |
bug#51425: file-system: validate flags |
Date: |
Fri, 29 Oct 2021 21:13:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi!
Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:
> 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.
I suppose it fails to boot because of a match error in
‘mount-flags->bit-mask’, right?
> The parameter to flags is nonsense, it should be something like:
> `read-only`. So mounting of the file system will fail...
That’s a good use case for the recently-added ‘sanitize’ record field
property.
Ludo’.
bug#51425: file-system: validate flags,
Ludovic Courtès <=