mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix typo in TODO comments.
PiperOrigin-RevId: 304508083
This commit is contained in:
@@ -170,7 +170,8 @@ func superBlockOpts(mountPath string, msrc *fs.MountSource) string {
|
||||
// NOTE(b/147673608): If the mount is a cgroup, we also need to include
|
||||
// the cgroup name in the options. For now we just read that from the
|
||||
// path.
|
||||
// TODO(gvisor.dev/issues/190): Once gVisor has full cgroup support, we
|
||||
//
|
||||
// TODO(gvisor.dev/issue/190): Once gVisor has full cgroup support, we
|
||||
// should get this value from the cgroup itself, and not rely on the
|
||||
// path.
|
||||
if msrc.FilesystemType == "cgroup" {
|
||||
|
||||
@@ -57,7 +57,7 @@ afterSymlink:
|
||||
}
|
||||
next := nextVFSD.Impl().(*dentry)
|
||||
if symlink, ok := next.inode.impl.(*symlink); ok && rp.ShouldFollowSymlink() {
|
||||
// TODO(gvisor.dev/issues/1197): Symlink traversals updates
|
||||
// TODO(gvisor.dev/issue/1197): Symlink traversals updates
|
||||
// access time.
|
||||
if err := rp.HandleSymlink(symlink.target); err != nil {
|
||||
return nil, err
|
||||
@@ -515,7 +515,7 @@ func (fs *filesystem) RenameAt(ctx context.Context, rp *vfs.ResolvingPath, oldPa
|
||||
oldParent.inode.decLinksLocked()
|
||||
newParent.inode.incLinksLocked()
|
||||
}
|
||||
// TODO(gvisor.dev/issues/1197): Update timestamps and parent directory
|
||||
// TODO(gvisor.dev/issue/1197): Update timestamps and parent directory
|
||||
// sizes.
|
||||
vfsObj.CommitRenameReplaceDentry(renamedVFSD, &newParent.vfsd, newName, replacedVFSD)
|
||||
return nil
|
||||
@@ -600,7 +600,7 @@ func (fs *filesystem) StatFSAt(ctx context.Context, rp *vfs.ResolvingPath) (linu
|
||||
if err != nil {
|
||||
return linux.Statfs{}, err
|
||||
}
|
||||
// TODO(gvisor.dev/issues/1197): Actually implement statfs.
|
||||
// TODO(gvisor.dev/issue/1197): Actually implement statfs.
|
||||
return linux.Statfs{}, syserror.ENOSYS
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ func TestStatAfterCreate(t *testing.T) {
|
||||
mode := linux.FileMode(0644)
|
||||
|
||||
// Run with different file types.
|
||||
// TODO(gvisor.dev/issues/1197): Also test symlinks and sockets.
|
||||
// TODO(gvisor.dev/issue/1197): Also test symlinks and sockets.
|
||||
for _, typ := range []string{"file", "dir", "pipe"} {
|
||||
t.Run(fmt.Sprintf("type=%q", typ), func(t *testing.T) {
|
||||
var (
|
||||
@@ -169,7 +169,7 @@ func TestSetStat(t *testing.T) {
|
||||
mode := linux.FileMode(0644)
|
||||
|
||||
// Run with different file types.
|
||||
// TODO(gvisor.dev/issues/1197): Also test symlinks and sockets.
|
||||
// TODO(gvisor.dev/issue/1197): Also test symlinks and sockets.
|
||||
for _, typ := range []string{"file", "dir", "pipe"} {
|
||||
t.Run(fmt.Sprintf("type=%q", typ), func(t *testing.T) {
|
||||
var (
|
||||
|
||||
@@ -315,7 +315,7 @@ func (i *inode) statTo(stat *linux.Statx) {
|
||||
stat.Atime = linux.NsecToStatxTimestamp(i.atime)
|
||||
stat.Ctime = linux.NsecToStatxTimestamp(i.ctime)
|
||||
stat.Mtime = linux.NsecToStatxTimestamp(i.mtime)
|
||||
// TODO(gvisor.dev/issues/1197): Device number.
|
||||
// TODO(gvisor.dev/issue/1197): Device number.
|
||||
switch impl := i.impl.(type) {
|
||||
case *regularFile:
|
||||
stat.Mask |= linux.STATX_SIZE | linux.STATX_BLOCKS
|
||||
|
||||
@@ -663,7 +663,7 @@ func (s *SocketOperations) checkFamily(family uint16, exact bool) *syserr.Error
|
||||
// This is a hack to work around the fact that both IPv4 and IPv6 ANY are
|
||||
// represented by the empty string.
|
||||
//
|
||||
// TODO(gvisor.dev/issues/1556): remove this function.
|
||||
// TODO(gvisor.dev/issue/1556): remove this function.
|
||||
func (s *SocketOperations) mapFamily(addr tcpip.FullAddress, family uint16) tcpip.FullAddress {
|
||||
if len(addr.Addr) == 0 && s.family == linux.AF_INET6 && family == linux.AF_INET {
|
||||
addr.Addr = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00"
|
||||
|
||||
@@ -835,7 +835,8 @@ func superBlockOpts(mountPath string, mnt *Mount) string {
|
||||
// NOTE(b/147673608): If the mount is a cgroup, we also need to include
|
||||
// the cgroup name in the options. For now we just read that from the
|
||||
// path.
|
||||
// TODO(gvisor.dev/issues/190): Once gVisor has full cgroup support, we
|
||||
//
|
||||
// TODO(gvisor.dev/issue/190): Once gVisor has full cgroup support, we
|
||||
// should get this value from the cgroup itself, and not rely on the
|
||||
// path.
|
||||
if mnt.fs.FilesystemType().Name() == "cgroup" {
|
||||
|
||||
@@ -234,7 +234,7 @@ TEST_P(DualStackSocketTest, AddressOperations) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(gvisor.dev/issues/1556): uncomment V4MappedAny.
|
||||
// TODO(gvisor.dev/issue/1556): uncomment V4MappedAny.
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
All, DualStackSocketTest,
|
||||
::testing::Combine(
|
||||
|
||||
Reference in New Issue
Block a user