401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

【OLK-5.10】fanotify support tmpfs

已完成
任务
创建于  
2022-07-07 14:20

回合linux社区主线补丁
59cda49ecf6c shmem: allow reporting fanotify events with file handles on tmpfs
9591c3a34f77 fs: introduce a wrapper uuid_to_fsid()
使 fanotify support tmpfs

评论 (3)

LiBaokun 创建了任务

Hi cool-water, 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 , @pi3orama , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @Qiuuuuu , @刘勇强 , @Xie XiuQi

openeuler-ci-bot 添加了
 
sig/Kernel
标签

原理:
将 uuid 转化为 tmpfs 的 f_fsid, 作为tmpfs的唯一标识来区分多个 tmpfs 对象
然后允许设置一个 fanotify 标记
置上该标记后可以通过文件句柄在tmpfs上面报告相关事件

59cda49ecf6c shmem: allow reporting fanotify events with file handles on tmpfs
9591c3a34f77 fs: introduce a wrapper uuid_to_fsid()

从主线 5.13 回合上述两个补丁,
在第一个补丁中将 ext2/ext4/zonefs 这几个文件系统中 statfs 时
通过 uuid 计算 fsid 的代码逻辑封装到一个通用函数 uuid_to_fsid 中
减少了重复代码的数量

在第二补丁中 用上个补丁封装的函数 uuid_to_fsid 为 tmpfs 的 buf->f_fsid 赋值
使得可以在 tmpfs 上使用 fanotify

登录 后才可以发表评论

状态
负责人
项目
里程碑
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

搜索帮助