Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
e281bc25
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
e281bc25
编写于
2月 25, 2020
作者:
Y
YongxueHong
提交者:
GitHub
2月 25, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2070 from menli820/bz_1785990_block_resize
block_resize: Cancel testing when resizing to 2T or 16T
上级
7dea7dd4
61e080b0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
0 deletion
+10
-0
qemu/tests/block_resize.py
qemu/tests/block_resize.py
+3
-0
qemu/tests/cfg/block_hotplug.cfg
qemu/tests/cfg/block_hotplug.cfg
+3
-0
qemu/tests/cfg/block_resize.cfg
qemu/tests/cfg/block_resize.cfg
+4
-0
未找到文件。
qemu/tests/block_resize.py
浏览文件 @
e281bc25
...
...
@@ -158,6 +158,9 @@ def run(test, params, env):
error_context
.
context
(
"Extend disk to %s in guest"
%
block_size
,
logging
.
info
)
if
os_type
==
'windows'
:
max_block_size
=
int
(
params
[
"max_block_size"
])
if
int
(
block_size
)
>=
max_block_size
:
test
.
cancel
(
"Cancel the test for more than maximum %dB disk."
%
max_block_size
)
drive
.
extend_volume
(
session
,
mpoint
)
else
:
utils_disk
.
resize_partition_linux
(
session
,
partition
,
str
(
block_size
))
...
...
qemu/tests/cfg/block_hotplug.cfg
浏览文件 @
e281bc25
...
...
@@ -76,6 +76,9 @@
need_rescan = yes
disk_letter = I
disk_index = 1
max_block_size = 2199023255552
ovmf:
max_block_size = 17592186044416
virtio_scsi:
driver_name = vioscsi
virtio_blk:
...
...
qemu/tests/cfg/block_resize.cfg
浏览文件 @
e281bc25
...
...
@@ -9,6 +9,10 @@
disk_change_ratio = "${extend_ratio} ${shrink_ratio}"
accept_ratio = 0.005
md5_file = md5.dat
Windows:
max_block_size = 2199023255552
ovmf:
max_block_size = 17592186044416
iozone_path = "WIN_UTILS:\Iozone\iozone.exe"
iozone_option = " -azR -r 64k -n 512M -g 1G -M -I -i 0 -i 1 -b iozone.xls -f %s:\testfile"
dd_cmd = "dd if=/dev/urandom of=%s oflag=direct bs=1M count=10"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录