Commit 4a6c005a authored by Jakob Unterwurzacher's avatar Jakob Unterwurzacher

fs: TestParallelMount: avoid hitting 1000 mounts limit

Per default, only 1000 FUSE mounts are allowed, then you get
> /usr/bin/fusermount3: too many FUSE filesystems mounted; mount_max=N can be set in /etc/fuse.conf

Let's stay well below 1000 as there may be other (unrelated)
FUSE mounts also occupying slots.

Change-Id: I2e2e094a88236ff803abba3722395c29207c8571
parent 135f7059
...@@ -698,7 +698,10 @@ func testMountDir(dir string) error { ...@@ -698,7 +698,10 @@ func testMountDir(dir string) error {
func TestParallelMount(t *testing.T) { func TestParallelMount(t *testing.T) {
before := runtime.GOMAXPROCS(1) before := runtime.GOMAXPROCS(1)
defer runtime.GOMAXPROCS(before) defer runtime.GOMAXPROCS(before)
N := 1000 // Per default, only 1000 FUSE mounts are allowed, then you get
// > /usr/bin/fusermount3: too many FUSE filesystems mounted; mount_max=N can be set in /etc/fuse.conf
// Let's stay well below 1000.
N := 900
todo := make(chan string, N) todo := make(chan string, N)
result := make(chan error, N) result := make(chan error, N)
for i := 0; i < N; i++ { for i := 0; i < N; i++ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment