Commit a64f6c7
committed
mountpoints: OpenBSD: mount(8) -v for more options and disklabel(8) UID
"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.)1 parent 02f7440 commit a64f6c7
File tree
2 files changed
+17
-7
lines changed- lib/facter/resolvers/openbsd
- spec/facter/resolvers/openbsd
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments