mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID#92
Open
klemensn wants to merge 2 commits intoOpenVoxProject:mainfrom
Open
mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID#92klemensn wants to merge 2 commits intoOpenVoxProject:mainfrom
klemensn wants to merge 2 commits intoOpenVoxProject:mainfrom
Conversation
…bles The regex is not pretty, but splits the line more clearly into two parts to be divided further independently. Prefer names to indices.
"Verbose mode" yields makes some options always appear, e.g.
`rw` rather than lack of `read-only` or informational timestamps,
as well as a disk's unique identifier, iff available.
Example `mount` and `facter mountpoints` output changes due to `-v`:
```
-/dev/sd1a on / type ffs (local, noatime)
+/dev/sd1a (2b22b08ec9273d80.a) on / type ffs (rw, local, ctime=Sat Feb 21 13:52:57 2026)
```
```
{
available => "663.01 MiB",
available_bytes => 695216128,
capacity => "27.91%",
device => "/dev/sd1a",
+ duid => "2b22b08ec9273d80.a",
filesystem => "ffs",
options => [
+ "rw",
"local",
"noatime",
+ "ctime=Sun Mar 1 16:49:49 2026"
],
size => "988.19 MiB",
size_bytes => 1036187648,
used => "275.77 MiB",
used_bytes => 289163264
}
```
With DUID not available, e.g. after remounting in certain ways:
```
-/dev/sd1a on / type ffs (local, noatime)
+/dev/sd1a on / type ffs (rw, local, noatime, ctime=Sun Mar 1 16:31:04 2026)
```
```
{
available => "663.01 MiB",
available_bytes => 695216128,
capacity => "27.91%",
device => "/dev/sd1a",
filesystem => "ffs",
options => [
+ "rw",
"local",
"noatime",
+ "ctime=Sun Mar 1 16:49:49 2026"
],
size => "988.19 MiB",
size_bytes => 1036187648,
used => "275.77 MiB",
used_bytes => 289163264
}
```
This makes it easier to:
- compare and ensure options
- manage fstab(5) using stable DUIDs
(device numbers roam due to attach order, softraid(4)/vnd(4), etc.)
Contributor
Author
|
@buzzdeee FYI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two easy improvements upon #84.