mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-11 14:32:26 +00:00
Compare commits
2 Commits
burgerdev/
...
fupan_debu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4771aaef2 | ||
|
|
23f0ae0a50 |
@@ -5,6 +5,7 @@
|
|||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
|
use std::fs;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{BufRead, BufReader, Read};
|
use std::io::{BufRead, BufReader, Read};
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
@@ -453,6 +454,17 @@ impl<AS: GuestAddressSpace> VirtioFs<AS> {
|
|||||||
prefetch_list_path: Option<String>,
|
prefetch_list_path: Option<String>,
|
||||||
) -> FsResult<()> {
|
) -> FsResult<()> {
|
||||||
debug!("http_server rafs");
|
debug!("http_server rafs");
|
||||||
|
let currentnetns = fs::read_link("/proc/self/ns/net").unwrap_or_default();
|
||||||
|
info!("========fupan====1==netns={:?}", currentnetns);
|
||||||
|
|
||||||
|
let tid = unsafe { libc::syscall(libc::SYS_gettid) as i32 };
|
||||||
|
|
||||||
|
let netnspath = format!("/proc/{}/ns/net", tid);
|
||||||
|
let netns = fs::read_link(netnspath.as_str()).unwrap_or_default();
|
||||||
|
info!("========fupan====2==netns={:?}", netns);
|
||||||
|
|
||||||
|
info!("========fupan====3==config={:?}", config);
|
||||||
|
|
||||||
let file = Path::new(&source);
|
let file = Path::new(&source);
|
||||||
let (mut rafs, rafs_cfg) = match config.as_ref() {
|
let (mut rafs, rafs_cfg) = match config.as_ref() {
|
||||||
Some(cfg) => {
|
Some(cfg) => {
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ else
|
|||||||
include $(ARCH_FILE)
|
include $(ARCH_FILE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(PREFIX),)
|
ifeq ($(PREFIX),)
|
||||||
PREFIX := /usr
|
PREFIX := /usr
|
||||||
EXEC_PREFIX := $(PREFIX)/local
|
EXEC_PREFIX := $(PREFIX)/local
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ function teardown() {
|
|||||||
echo "Running teardown"
|
echo "Running teardown"
|
||||||
local rc=0
|
local rc=0
|
||||||
|
|
||||||
|
journalctl -x -t kata --since "10 minutes ago" || true
|
||||||
|
|
||||||
local pid
|
local pid
|
||||||
for bin in containerd-nydus-grpc nydusd; do
|
for bin in containerd-nydus-grpc nydusd; do
|
||||||
pid=$(pidof $bin)
|
pid=$(pidof $bin)
|
||||||
|
|||||||
Reference in New Issue
Block a user