Add missing OpenBSD mount option strings

Add missing mount option string decoding according to the OpenBSD
mount(8) manpage: https://man.openbsd.org/mount
pull/807/head
Tobias Klauser 5 years ago
parent 10cdcee035
commit 4d6c82fb03

@ -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[:]),

Loading…
Cancel
Save