mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add contextual note.
PiperOrigin-RevId: 294285723
This commit is contained in:
committed by
gVisor bot
parent
c9a18b16ad
commit
4d4d47f0c0
@@ -87,6 +87,10 @@ func (d *dentry) getDirents(ctx context.Context) ([]vfs.Dirent, error) {
|
||||
// to assume that directory fids have the correct semantics, and translates
|
||||
// struct file_operations::readdir calls directly to readdir RPCs), but is
|
||||
// consistent with VFS1.
|
||||
//
|
||||
// NOTE(b/135560623): In particular, some gofer implementations may not
|
||||
// retain state between calls to Readdir, so may not provide a coherent
|
||||
// directory stream across in the presence of mutation.
|
||||
|
||||
d.fs.renameMu.RLock()
|
||||
defer d.fs.renameMu.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user