Skip to content

mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID#92

Open
klemensn wants to merge 2 commits intoOpenVoxProject:mainfrom
klemensn:openbsd-mountpoints
Open

mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID#92
klemensn wants to merge 2 commits intoOpenVoxProject:mainfrom
klemensn:openbsd-mountpoints

Conversation

@klemensn
Copy link
Contributor

@klemensn klemensn commented Mar 1, 2026

  • mountpoints: OpenBSD: split around parentheses, use descriptive variables
  • mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID

Two easy improvements upon #84.

klemensn added 2 commits March 1, 2026 09:40
…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.)
@klemensn
Copy link
Contributor Author

klemensn commented Mar 1, 2026

@buzzdeee FYI

@bastelfreak bastelfreak added the enhancement New feature or request label Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants