-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
- Loading branch information
1 parent
40ee36a
commit 612e63a
Showing
6 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters