serve nfs: add serve rc interface

This commit is contained in:
Nick Craig-Wood
2025-03-28 11:12:39 +00:00
parent 4d9a165e56
commit 0b7be6ffb9
2 changed files with 38 additions and 0 deletions

19
cmd/serve/nfs/nfs_test.go Normal file
View File

@@ -0,0 +1,19 @@
//go:build unix
// The serving is tested in cmd/nfsmount - here we test anything else
package nfs
import (
"testing"
_ "github.com/rclone/rclone/backend/local"
"github.com/rclone/rclone/cmd/serve/servetest"
"github.com/rclone/rclone/fs/rc"
)
func TestRc(t *testing.T) {
servetest.TestRc(t, rc.Params{
"type": "nfs",
"vfs_cache_mode": "off",
})
}