Skip to content

Commit

Permalink
client: cpu9p: add method Lock
Browse files Browse the repository at this point in the history
Upgrade the dependency github.com/hugelgupf/p9 to 5cb68b4d03bb
and Add method Lock to cpu9p.

Lock was added in hugelgupf/p9#52.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
  • Loading branch information
Lencerf authored and rminnich committed Jul 20, 2023
1 parent bc998dc commit 31cf466
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 25 deletions.
5 changes: 5 additions & 0 deletions client/cpu9p.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ func (l *cpu9p) info() (p9.QID, os.FileInfo, error) {
return qid, fi, nil
}

func (l *cpu9p) Lock(pid int, locktype p9.LockType, flags p9.LockFlags, start, length uint64, client string) (p9.LockStatus, error) {
verbose("Lock: not implemented")
return p9.LockStatusError, syscall.ENOSYS
}

// Walk implements p9.File.Walk.
func (l *cpu9p) Walk(names []string) ([]p9.QID, p9.File, error) {
var qids []p9.QID
Expand Down
50 changes: 25 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ module github.com/u-root/cpu
go 1.20

require (
github.com/gliderlabs/ssh v0.3.3
github.com/hugelgupf/p9 v0.1.1-0.20210528120703-cc05b77b314b
github.com/kevinburke/ssh_config v1.1.0
github.com/gliderlabs/ssh v0.3.5
github.com/hugelgupf/p9 v0.2.1-0.20230102222142-5cb68b4d03bb
github.com/kevinburke/ssh_config v1.2.0
github.com/u-root/u-root v0.11.0
golang.org/x/crypto v0.1.0
golang.org/x/sys v0.7.0
golang.org/x/crypto v0.10.0
golang.org/x/sys v0.9.0
)

require (
github.com/brutella/dnssd v1.2.4
github.com/creack/pty v1.1.15
github.com/mdlayher/vsock v1.1.1
github.com/brutella/dnssd v1.2.9
github.com/creack/pty v1.1.18
github.com/mdlayher/vsock v1.2.1
github.com/shirou/gopsutil v3.21.11+incompatible
golang.org/x/exp v0.0.0-20221002003631-540bb7301a08
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df
google.golang.org/grpc v1.55.0
google.golang.org/protobuf v1.30.0
)
Expand All @@ -25,22 +25,22 @@ require (
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/klauspost/compress v1.10.6 // indirect
github.com/klauspost/pgzip v1.2.4 // indirect
github.com/mdlayher/socket v0.2.0 // indirect
github.com/miekg/dns v1.1.50 // indirect
github.com/klauspost/compress v1.16.6 // indirect
github.com/klauspost/pgzip v1.2.6 // indirect
github.com/mdlayher/socket v0.4.1 // indirect
github.com/miekg/dns v1.1.55 // indirect
github.com/stretchr/testify v1.8.0 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect
github.com/u-root/uio v0.0.0-20220204230159-dac05f7d2cb4 // indirect
github.com/ulikunitz/xz v0.5.8 // indirect
github.com/vishvananda/netlink v1.1.1-0.20211118161826-650dca95af54 // indirect
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.9.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/tools v0.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/u-root/uio v0.0.0-20230305220412-3e8cd9d6bf63 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/vishvananda/netlink v1.2.1-beta.2 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/tools v0.10.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
)
Loading

0 comments on commit 31cf466

Please sign in to comment.