12 Star 2 Fork 48

src-openEuler / util-linux

 / 详情

选项[-f | --fake],dry run,不进行mount系统调用

已验收
缺陷
创建于  
2023-09-11 18:38

**【标题描述】能够简要描述问题:选项[-f | --fake],dry run,不进行mount系统调用

一、缺陷信息

util-linux-2.39.1-3.oe2309.aarch64

缺陷简述:
执行以下testEL_mount_FUN.005
1.添加硬盘
2.输入指令“pvcreate /dev/sda2 /dev/sda3 ”,创建物理卷,预期结果为1,2,3
4、输入指令“vgcreate testVG /dev/sda2 /dev/sda3”,创建卷组,预期结果为1,2,4
5、输入指令“lvcreate -L 500M -n testLV0 testVG”,预期结果为1,2,5
6、输入指令“lvcreate -L 500M -n testLV1 testVG”,预期结果为1,2,5
7、输入指令“mkfs -t ext3 /dev/testVG/testLV0”,预期结果为1,2
8、输入指令“mkfs -t ext3 /dev/testVG/testLV1”,预期结果为1,2
9、执行ls /tmp/testMount0,若返回值非0,则输入指令“mkdir /tmp/testMount0”,预期结果为1
10、执行ls /tmp/testMount1,若返回值非0,则输入指令“mkdir /tmp/testMount1”,预期结果为1
11、输入指令“mount -f /dev/testVG/testLV0 /tmp/testMount0”,预期结果1,6
12、输入指令“mount --fake /dev/testVG/testLV1 /tmp/testMount1”,预期结果1,6
13、结果3,4通过使用pvscan获取PV信息来验证,结果5通过使用lvs获取LV信息来验证
mount -f /dev/${VG_NAME}/${LV_NAME1} $MOUNT_DIR1
mount --fake /dev/${VG_NAME}/${LV_NAME2} $MOUNT_DIR2

【实际结果】,请描述出问题的结果和影响

实际

预期结果:
1、指令返回值为0
2、指令标准输出不为空
3、PV创建成功
4、PV的所属卷组为testVG
5、LV创建成功
6.无mount信息

评论 (2)

我是白菜 创建了缺陷

Hi liwencheng6769, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @hexiaowen , @Monday , @syyhao , @谢志鹏 , @zhujianwei001 , @licunlong , @chenjiayi , @const , @xujing , @陈棋德

openeuler-ci-bot 添加了
 
sig/Base-service
标签
我是白菜 修改了描述

https://github.com/util-linux/util-linux/commit/8241fb005f41a9450739f00c7396ca1e8cde69af
https://github.com/util-linux/util-linux/pull/2404
新版本2.39.1使用新的mount api:fsconfig,无法跳过一些步骤,导致--fake无效,为了兼容,还是提供相关选项!

我是白菜 负责人设置为zhangyao2022
我是白菜 任务状态待办的 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/util-linux.git
git@gitee.com:src-openeuler/util-linux.git
src-openeuler
util-linux
util-linux

搜索帮助