From ada3396e49a7f002d0b4b2c7b12a5f281aba3176 Mon Sep 17 00:00:00 2001 From: lixiang Date: Fri, 15 Nov 2024 17:25:48 +0800 Subject: [PATCH] submit some changes --- docs/snapshot.md | 2 +- machine_manager/src/qmp/qmp_response.rs | 2 +- ozone/src/syscall.rs | 2 +- tests/hydropper/utils/utils_logging.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/snapshot.md b/docs/snapshot.md index 6a9c97f73..5e9c118b2 100644 --- a/docs/snapshot.md +++ b/docs/snapshot.md @@ -25,7 +25,7 @@ $ ncat -U path/to/socket {"return":{}} ``` -When VM is in paused state, is's safe to take a snapshot of the VM into the specified directory with QMP. +When VM is in paused state, it's safe to take a snapshot of the VM into the specified directory with QMP. ```shell $ ncat -U path/to/socket {"QMP":{"version":{"StratoVirt":{"micro":1,"minor":0,"major":0},"package":""},"capabilities":[]}} diff --git a/machine_manager/src/qmp/qmp_response.rs b/machine_manager/src/qmp/qmp_response.rs index 54fe538a3..997b619f0 100644 --- a/machine_manager/src/qmp/qmp_response.rs +++ b/machine_manager/src/qmp/qmp_response.rs @@ -145,7 +145,7 @@ impl Response { } } - /// Create a error qmo response with `err_class` and `id`. + /// Create a error qmp response with `err_class` and `id`. /// # Arguments /// /// * `err_class` - The `QmpErrorClass` of qmp `error` field. diff --git a/ozone/src/syscall.rs b/ozone/src/syscall.rs index 648f3fc20..ce068b599 100644 --- a/ozone/src/syscall.rs +++ b/ozone/src/syscall.rs @@ -155,7 +155,7 @@ pub fn setns(fd: i32, nstype: i32) -> Result<()> { /// /// # Arguments /// -/// * `path` - The relative path of filder. +/// * `path` - The relative path of folder. pub fn mkdir(path: &str) -> Result<()> { let path_ptr = into_cstring(path)?; SyscallResult { diff --git a/tests/hydropper/utils/utils_logging.py b/tests/hydropper/utils/utils_logging.py index 6c60200ea..6f5bf4052 100644 --- a/tests/hydropper/utils/utils_logging.py +++ b/tests/hydropper/utils/utils_logging.py @@ -80,7 +80,7 @@ class Logger(): # FileHandler log level self.f_level = level[1] - self.msg = "Hello Word, just test" + self.msg = "Hello World, just test" if not mode: self.mode = r'a' -- Gitee