Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate CRI and containerd file system stats #2956

Merged
merged 20 commits into from
Oct 11, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prepend rootfs to the paths in containerd handler
Signed-off-by: Qiutong Song <songqt01@gmail.com>
  • Loading branch information
qiutongs authored and bobbypage committed Oct 11, 2021
commit 6b22b5c0b0068f7d5ae7edd1c41525981ab6f612
5 changes: 3 additions & 2 deletions container/containerd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package containerd
import (
"encoding/json"
"fmt"
"path"
"strings"
"time"

Expand Down Expand Up @@ -192,7 +193,7 @@ func newContainerdContainerHandler(
}
}
}
deviceInfo, err := fsInfo.GetDirFsDevice(snapshotDir)
deviceInfo, err := fsInfo.GetDirFsDevice(path.Join(rootfs, snapshotDir))
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -227,7 +228,7 @@ func newContainerdContainerHandler(
client: client,
containerID: id,
// Path of logs, e.g. /var/log/pods/XXX
logPath: status.LogPath,
logPath: path.Join(rootfs, status.LogPath),
fsInfo: fsInfo,
})
}
Expand Down