You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOVERSION="go1.17.4"
What did you do?
I tried compiling Go off of current master on my machine. I followed the directions for compiling from source. I ran into an error when running all.bash in the fallocate_test.go file. I did a bit of research and it appears to be a problem with ZFS and nothing with the Go programming language.
The total size in bytes for the file is not equal to the number of 512 byte blocks allocated thus something weird is happening in reporting stats of a file descriptor back. Since this is an issue outside of Go, is there anyway a logic check could be done to not throw the failing test error?
// /src/cmd/link/internal/ld/fallocate_test.go [line 60]
if got, actual, want := stat.Sys().(*syscall.Stat_t).Blocks,
stat.Sys().(*syscall.Stat_t).Size/512, (sz+511)/512; actual == got && got < want {
t.Errorf("unexpected disk usage: got %d blocks, want at least %d", got, want)
}
Or leverage the os library to determine if the filesystem is ZFS or something that fallocate does not work well with but that fallocate does not fail with (return -1) as well?
What did you expect to see?
ALL TESTS PASSED
What did you see instead?
--- FAIL: TestFallocate (0.00s)
fallocate_test.go:61: unexpected disk usage: got 2 blocks, want at least 2048
fallocate_test.go:61: unexpected disk usage: got 2 blocks, want at least 4096
fallocate_test.go:61: unexpected disk usage: got 2 blocks, want at least 6144
FAIL
FAIL cmd/link/internal/ld 20.138s
The text was updated successfully, but these errors were encountered:
devnull850
changed the title
affected/package: ld
cmd/link/internal/ld: fallocate_test.go failed test
Dec 8, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried compiling Go off of current master on my machine. I followed the directions for compiling from source. I ran into an error when running all.bash in the fallocate_test.go file. I did a bit of research and it appears to be a problem with ZFS and nothing with the Go programming language.
Running the program above (recommended for debugging in a previous ticket related to this) resulted in
The total size in bytes for the file is not equal to the number of 512 byte blocks allocated thus something weird is happening in reporting stats of a file descriptor back. Since this is an issue outside of Go, is there anyway a logic check could be done to not throw the failing test error?
Or leverage the os library to determine if the filesystem is ZFS or something that fallocate does not work well with but that fallocate does not fail with (return -1) as well?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: