From 4d6c82fb036bd129319af385b15480eca7fedab2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 23 Dec 2019 13:42:44 +0100 Subject: [PATCH] Add missing OpenBSD mount option strings Add missing mount option string decoding according to the OpenBSD mount(8) manpage: https://man.openbsd.org/mount --- disk/disk_openbsd.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/disk/disk_openbsd.go b/disk/disk_openbsd.go index e8d0d19..ab17eac 100644 --- a/disk/disk_openbsd.go +++ b/disk/disk_openbsd.go @@ -51,6 +51,15 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro if stat.F_flags&unix.MNT_ASYNC != 0 { opts += ",async" } + if stat.F_flags&unix.MNT_SOFTDEP != 0 { + opts += ",softdep" + } + if stat.F_flags&unix.MNT_NOATIME != 0 { + opts += ",noatime" + } + if stat.F_flags&unix.MNT_WXALLOWED != 0 { + opts += ",wxallowed" + } d := PartitionStat{ Device: common.IntToString(stat.F_mntfromname[:]),