**【标题描述】能够简要描述问题:选项[-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信息
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 , @陈棋德
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
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无效,为了兼容,还是提供相关选项!
登录 后才可以发表评论