]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
os: allow direntries to have zero inodes on Linux
authorDave Vasilevsky <dave@vasilevsky.ca>
Tue, 25 Nov 2025 03:55:45 +0000 (03:55 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 27 Nov 2025 04:42:22 +0000 (20:42 -0800)
commitcec4d4303f6475475d1a632cca506e8a82072d25
tree682276bff6b9d0a0bfbfed145e5abd5c5be22960
parentf1bbc66a10a545811a21dcf9f9431e783aafcb42
os: allow direntries to have zero inodes on Linux

Some Linux filesystems have been known to return valid enties with
zero inodes. This new behavior also puts Go in agreement with recent
glibc.

Fixes #76428

Change-Id: Ieaf50739a294915a3ea2ef8c5a3bb2a91a186881
GitHub-Last-Rev: 8f83d009ef0320fd3fe7cf03e55d5d24df57f015
GitHub-Pull-Request: golang/go#76448
Reviewed-on: https://go-review.googlesource.com/c/go/+/724220
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/os/dir_unix.go
src/syscall/dirent.go