]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] 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)
committerMichael Knyszek <mknyszek@google.com>
Fri, 19 Dec 2025 17:55:27 +0000 (09:55 -0800)
commitea603eea37f1030cfeecbe03ec7660fbc0da7819
treeb6fa3262a36b384560e1ff1947ab392187e571d0
parent93f5d1c27e6942dc582da8165400bdeff62e5877
[release-branch.go1.25] 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 #76620

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/725340
src/os/dir_unix.go
src/syscall/dirent.go