Skip to content

Commit

Permalink
Tidy up following review comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Oct 10, 2024
1 parent 8730e2f commit 05895c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/cpu9p_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion client/cpu_freebsd.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 0 additions & 2 deletions client/getattr_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 05895c1

Please sign in to comment.