From 10cdcee035c2778fb3837ed8e531e877a81c0cb1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 23 Dec 2019 13:41:39 +0100 Subject: [PATCH] Fix typos in FreeBSD mount option strings Fix typos in FreeBSD mount option strings so they match the values given in the mount(8) manpage: https://www.freebsd.org/cgi/man.cgi?mount(8) --- disk/disk_freebsd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disk/disk_freebsd.go b/disk/disk_freebsd.go index c673969..4ee8e66 100644 --- a/disk/disk_freebsd.go +++ b/disk/disk_freebsd.go @@ -63,7 +63,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro opts += ",nosymfollow" } if stat.Flags&unix.MNT_GJOURNAL != 0 { - opts += ",gjounalc" + opts += ",gjournal" } if stat.Flags&unix.MNT_MULTILABEL != 0 { opts += ",multilabel" @@ -72,16 +72,16 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro opts += ",acls" } if stat.Flags&unix.MNT_NOATIME != 0 { - opts += ",noattime" + opts += ",noatime" } if stat.Flags&unix.MNT_NOCLUSTERR != 0 { - opts += ",nocluster" + opts += ",noclusterr" } if stat.Flags&unix.MNT_NOCLUSTERW != 0 { opts += ",noclusterw" } if stat.Flags&unix.MNT_NFS4ACLS != 0 { - opts += ",nfs4acls" + opts += ",nfsv4acls" } d := PartitionStat{