Remove remaining references to vfs2.

PiperOrigin-RevId: 493998299
This commit is contained in:
Ayush Ranjan
2022-12-08 14:37:43 -08:00
committed by gVisor bot
parent d947422655
commit 110c3d76e4
6 changed files with 6 additions and 21 deletions
+1 -1
View File
@@ -10,6 +10,6 @@
"type": "gvisor",
"vm": {
"count": 1,
"runsc_args": "--debug --network none --platform ptrace --vfs2 -net-raw -watchdog-action=panic"
"runsc_args": "--debug --network none --platform ptrace -net-raw -watchdog-action=panic"
}
}
+1 -7
View File
@@ -90,14 +90,8 @@ type elfInfo struct {
sharedObject bool
}
// fullReader interface extracts the ReadFull method from fsbridge.File so that
// client code does not need to define an entire fsbridge.File when only read
// functionality is needed.
//
// TODO(gvisor.dev/issue/1035): Once VFS2 ships, rewrite this to wrap
// vfs.FileDescription's PRead/Read instead.
type fullReader interface {
// ReadFull is the same as fsbridge.File.ReadFull.
// ReadFull is the same as vfs.FileDescription.ReadFull.
ReadFull(ctx context.Context, dst usermem.IOSequence, offset int64) (int64, error)
}
+1
View File
@@ -55,6 +55,7 @@ type byteFullReader struct {
data []byte
}
// ReadFull implements fullReader.ReadFull.
func (b *byteFullReader) ReadFull(ctx context.Context, dst usermem.IOSequence, offset int64) (int64, error) {
if offset < 0 {
return 0, linuxerr.EINVAL
-6
View File
@@ -417,12 +417,6 @@ func (*provider) Pair(t *kernel.Task, stype linux.SockType, protocol int) (*vfs.
return s1, s2, nil
}
// socketOpsCommon contains the socket operations common to VFS1 and VFS2.
//
// +stateify savable
type socketOpsCommon struct {
}
func (s *Socket) isPacket() bool {
switch s.stype {
case linux.SOCK_DGRAM, linux.SOCK_SEQPACKET:
+1 -2
View File
@@ -35,8 +35,7 @@ use pprof profiles generated by `runsc debug`. The profiler will generate Block,
CPU, Heap, Goroutine, and Mutex profiles. To generate profiles:
* Install runsc with the `--profile` flag: `make configure RUNTIME=myrunsc
ARGS="--profile"` Also add other flags with ARGS like `--platform=kvm` or
`--vfs2`.
ARGS="--profile"` Also add other flags with ARGS like `--platform=kvm`.
* Restart docker: `sudo service docker restart`
To run and generate CPU profiles run:
+2 -5
View File
@@ -107,19 +107,16 @@ complete a command and when the server awaits the next instruction.
## Running the tests
Based on syscall tests, FUSE tests generate targets only with vfs2 and fuse
enabled. The corresponding targets end in `_fuse`.
For example, to run fuse test in `stat_test.cc`:
```bash
$ bazel test //test/fuse:stat_test_runsc_ptrace_vfs2_fuse
$ bazel test //test/fuse:stat_test_runsc_ptrace
```
Test all targets tagged with fuse:
```bash
$ bazel test --test_tag_filters=fuse //test/fuse/...
$ bazel test //test/fuse/...
```
## Writing a new FUSE test