mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
612e63a7c8
- Added `fsutil.ForEachDirent()` (used by directfs). - Added `fsutil.DirentNames()`, which uses `ForEachDirent()`. Used by sysfs and in the future will be used by nvproxy/tpuproxy. Separately, fixed some bugs in sysfs: - We were leaking FDs in `hostDirEntries()`. - We were leaking FD in `hostFile.Generate()` on error path. - Got rid of `hostFileBufSize` users. They expected contents to be of 4096 bytes only. Instead made the functions agnostic of file size. PiperOrigin-RevId: 580688250