From 05895c1d67ad74c89d2204e46a04429974483798 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 8 Oct 2024 08:03:29 +0000 Subject: [PATCH] Tidy up following review comments. Signed-off-by: Ronald G. Minnich --- client/cpu9p_unix.go | 2 +- client/cpu_freebsd.go | 2 +- client/getattr_freebsd.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/cpu9p_unix.go b/client/cpu9p_unix.go index 4525c23d..e0dfe80a 100644 --- a/client/cpu9p_unix.go +++ b/client/cpu9p_unix.go @@ -35,7 +35,7 @@ func (l *CPU9P) SetAttr(mask p9.SetAttrMask, attr p9.SetAttr) error { if mask.Size { if e := unix.Truncate(l.path, int64(attr.Size)); e != nil { - err = errors.Join(err, fmt.Errorf("Truncate:%w", err)) + err = errors.Join(err, fmt.Errorf("truncate:%w", err)) } } if mask.ATime || mask.MTime { diff --git a/client/cpu_freebsd.go b/client/cpu_freebsd.go index f2ed9d8c..a56d89d3 100644 --- a/client/cpu_freebsd.go +++ b/client/cpu_freebsd.go @@ -1,4 +1,4 @@ -// Copyright 2018-2019 the u-root Authors. All rights reserved +// Copyright 2018-2024 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/client/getattr_freebsd.go b/client/getattr_freebsd.go index 795e5a61..03d370fd 100644 --- a/client/getattr_freebsd.go +++ b/client/getattr_freebsd.go @@ -21,8 +21,6 @@ import ( ) // GetAttr implements p9.File.GetAttr. -// -// Not fully implemented. func (l *CPU9P) GetAttr(req p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error) { qid, fi, err := l.info() if err != nil {