1 Star 0 Fork 8

沈仲伟/hmdfs

forked from src-openEuler/hmdfs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-add-dcache-parameter-support.patch 707 Bytes
一键复制 编辑 原始数据 按行查看 历史
沈仲伟 提交于 2024-12-10 14:33 +08:00 . Enable patch0003 and patch0004
diff --git a/super.c b/super.c
index 18f222c..aee7d47 100644
--- a/super.c
+++ b/super.c
@@ -150,6 +156,24 @@ int hmdfs_parse_options(struct hmdfs_sb_info *sbi, const char *data)
sbi->user_id = user_id;
}
break;
+ case OPT_DCACHE_THRESHOLD:
+ err = match_int(&args[0], &decache);
+ if (err)
+ goto out;
+ sbi->dcache_threshold = decache;
+ break;
+ case OPT_DCACHE_PRECISION:
+ err = match_int(&args[0], &decache);
+ if (err)
+ goto out;
+ sbi->dcache_precision = decache;
+ break;
+ case OPT_DCACHE_TIMEOUT:
+ err = match_int(&args[0], &decache);
+ if (err)
+ goto out;
+ sbi->dcache_timeout = decache;
+ break;
default:
err = -EINVAL;
goto out;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhong-wei-shen/hmdfs.git
git@gitee.com:zhong-wei-shen/hmdfs.git
zhong-wei-shen
hmdfs
hmdfs
master

搜索帮助