402 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

【OLK-5.10】AFI自动注入+磁盘故障结合,出现文件系统fsck后仍有错误

已完成
任务
创建于  
2022-11-04 15:21

【严重程度】 一般
【特性】 文件系统
【重现类型】 有条件概率重现
【* 定位分析(有效问题请“先对原有功能进行描述,重点描述与当前故障现象相关的技术点、以及缺陷出现的触发条件、错误出现的函数等”;非问题“需要澄清技术细节,描述技术实现原理以及当前现象合理性的解释”;重复问题请“说明重复问题单号”;开发人员需要在此处提供问题相关分析的bugzilla连接,如无可不写,并将问题的最终分析结论详细说明)】


ext4_split_extent_at

...
3254 err = ext4_ext_insert_extent(handle, inode, ppath, &newex, flags);
3255 if (err != -ENOSPC && err != -EDQUOT)
3256 goto out;
...
3301 fix_extent_len:
3302 ex->ee_len = orig_ex.ee_len;
3303 /
3304 * Ignore ext4_ext_dirty return value since we are already in error path
3305 * and err is a non-zero error code.
3306 /
3307 ext4_ext_dirty(handle, inode, path + path->p_depth);
3308 return err;
3309 out:
3310 ext4_ext_show_leaf(inode, path);
3311 return err;

也就是说ext4_ext_insert_extent失败之后返回-ENOMEM并不会把len 复原导致块泄露



【 影响评估及测试建议】

不涉及


【 对外影响描述(请描述对外用户的影响,如:对外配置文件/头文件/工程文件等修改列表,对外的配置、函数的寓意变化返回值、取值范围变化、参数类型个数变化等。如果有请写出对应文件,如果没有请填写“无”)】

评论 (1)

hulk-robot 创建了任务

Hi zhixiuzhou, 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: Kernel, and any of the maintainers: @YangYingliang , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @wuxu_buque , @Xu Kuohai , @冷嘲啊 , @Lingmingqiang , @yuzenghui , @juntian , @OSSIM , @陈结松 , @whoisxxx , @koulihong , @刘恺 , @hanjun-guo , @woqidaideshi , @Chiqijun , @Kefeng , @ThunderTown , @AlexGuo , @kylin-mayukun , @Zheng Zucheng , @柳歆 , @Jackie Liu , @zhujianwei001 , @郑振鹏 , @SuperSix173 , @colyli , @Zhang Yi , @htforge , @Qiuuuuu , @Yuehaibing , @xiehaocheng , @guzitao , @CTC-Xibo.Wang , @zhanghongchen , @chen wei , @Jason Zeng , @Xie XiuQi

登录 后才可以发表评论

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

搜索帮助

344bd9b3 5694891 D2dac590 5694891