gvisor/pkg/sentry/fs/ramfs
Ruidong Cao 3851705a73 Fix procfs bugs
Current procfs has some bugs. After executing ls twice, many dirs come
out with same name like "1" or ".". Files like "cpuinfo" disappear.
Here variable names is a slice with cap() > len(). Sort after appending
to it will not alloc a new space and impact orignal slice. Same to m.

Signed-off-by: Ruidong Cao <crdfrank@gmail.com>
Change-Id: I83e5cd1c7968c6fe28c35ea4fee497488d4f9eef
PiperOrigin-RevId: 236222270
2019-02-28 16:44:54 -08:00
..
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
dir.go Fix procfs bugs 2019-02-28 16:44:54 -08:00
socket.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00
symlink.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00
tree.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00
tree_test.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00