免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234567
最近访问板块 发新帖
楼主: goter
打印 上一主题 下一主题

[文件系统] 一个简单文件系统的实现 [复制链接]

论坛徽章:
0
61 [报告]
发表于 2014-03-25 16:15 |只看该作者
完全是看天书,一点都不懂,楼主能简洁地说一下gtfs在linux上的大概用途吗?与ext3的区别是什么

论坛徽章:
0
62 [报告]
发表于 2014-03-25 18:25 |只看该作者
赞!还没找到学linux的入口,想学文件系统

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
63 [报告]
发表于 2014-07-04 09:55 |只看该作者
好文章,强烈支持

论坛徽章:
8
2015年辞旧岁徽章
日期:2015-03-03 16:54:15午马
日期:2015-02-04 12:00:07羊年新春福章
日期:2015-02-04 11:57:56双子座
日期:2014-12-02 11:44:59金牛座
日期:2014-10-08 16:47:08狮子座
日期:2014-08-29 13:37:46巳蛇
日期:2014-08-26 17:32:29NBA常规赛纪念章
日期:2015-05-04 22:32:03
64 [报告]
发表于 2014-08-13 11:10 |只看该作者
讲解的很好,学习了。      

论坛徽章:
13
寅虎
日期:2014-03-16 21:06:152015年迎新春徽章
日期:2015-03-04 09:52:242015年亚洲杯之巴林
日期:2015-02-03 22:13:37卯兔
日期:2015-02-03 22:12:48子鼠
日期:2015-02-03 22:09:35亥猪
日期:2015-02-03 22:09:06金牛座
日期:2015-02-03 22:08:04摩羯座
日期:2015-01-18 21:39:23寅虎
日期:2015-01-01 11:38:40申猴
日期:2014-12-23 00:16:16午马
日期:2014-12-15 22:13:23寅虎
日期:2014-04-09 19:35:14
65 [报告]
发表于 2014-10-08 13:20 |只看该作者
内存inode和磁盘inode有什么联系,是如何映射的?
内存inode仅仅是访问提高访问速度吗?

代码中gt_inode ,struct gt_inode_info,vfs_inode这3个数据结构是怎么联系起来的

另外磁盘超级块数据结构为何又是这样定义:
struct  gt_sb_info{
        struct gt_super_block * s_gs;   ????
        struct buffer_head * s_sbh;
};
而内存的磁盘结构要这样定义
struct gt_inode_info{
       …………       
        truct inode vfs_inode; ?????
};

小弟初学者,对这个很模糊对这几个数据结构的关系没摸清楚,请各位指教!

论坛徽章:
1
天蝎座
日期:2015-02-04 15:40:37
66 [报告]
发表于 2014-10-08 15:18 |只看该作者
应该把这个代码放到github上,维护起来才更有感觉。

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
67 [报告]
发表于 2015-03-07 21:08 |只看该作者
楼主,我在2.6.36.65内核上编译错误,不知道是不是版本的问题?

fs/gt/dir.c: In function ‘gt_readdir’:
fs/gt/dir.c:72:2: error: implicit declaration of function ‘lock_kernel’ [-Werror=implicit-function-declaration]
fs/gt/dir.c:98:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
fs/gt/dir.c:111:2: error: implicit declaration of function ‘unlock_kernel’ [-Werror=implicit-function-declaration]
fs/gt/dir.c: In function ‘gt_add_link’:
fs/gt/dir.c:216:60: warning: passing argument 6 of ‘__gt_write_begin’ from incompatible pointer type [enabled by default]
In file included from fs/gt/dir.c:1:0:
fs/gt/gt.h:35:12: note: expected ‘struct page *’ but argument is of type ‘struct page **’
fs/gt/dir.c: In function ‘gt_delete_entry’:
fs/gt/dir.c:246:2: warning: passing argument 6 of ‘__gt_write_begin’ from incompatible pointer type [enabled by default]
In file included from fs/gt/dir.c:1:0:
fs/gt/gt.h:35:12: note: expected ‘struct page *’ but argument is of type ‘struct page **’
fs/gt/dir.c: In function ‘gt_make_empty’:
fs/gt/dir.c:328:69: warning: passing argument 6 of ‘__gt_write_begin’ from incompatible pointer type [enabled by default]
In file included from fs/gt/dir.c:1:0:
fs/gt/gt.h:35:12: note: expected ‘struct page *’ but argument is of type ‘struct page **’
fs/gt/dir.c:338:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
fs/gt/dir.c: In function ‘gt_set_link’:
fs/gt/dir.c:363:66: warning: passing argument 6 of ‘__gt_write_begin’ from incompatible pointer type [enabled by default]
In file included from fs/gt/dir.c:1:0:
fs/gt/gt.h:35:12: note: expected ‘struct page *’ but argument is of type ‘struct page **’
cc1: some warnings being treated as errors
make[2]: *** [fs/gt/dir.o] 错误 1
make[1]: *** [fs/gt] 错误 2
make: *** [fs] 错误 2

论坛徽章:
11
程序设计版块每日发帖之星
日期:2015-09-09 06:20:00CU十四周年纪念徽章
日期:2016-05-16 11:11:112016科比退役纪念章
日期:2016-05-04 17:16:57程序设计版块每日发帖之星
日期:2016-02-20 06:20:00程序设计版块每周发帖之星
日期:2015-11-06 19:30:58程序设计版块每日发帖之星
日期:2015-09-12 06:20:00程序设计版块每日发帖之星
日期:2015-09-11 06:20:00每日论坛发贴之星
日期:2015-09-10 06:20:00程序设计版块每日发帖之星
日期:2015-09-10 06:20:00每日论坛发贴之星
日期:2015-09-09 06:20:0015-16赛季CBA联赛之四川
日期:2016-12-15 15:52:10
68 [报告]
发表于 2016-03-25 10:47 |只看该作者
来学习,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP