摘要: 1、介绍Advantage of user-space NFS server is that it does not require kernel support. Also if it crashes — there is no crash of the system: just one process dies, not the kernel!The disadvantage of user-space NFS server is its productivity: no one can be faster than in-kernel implementation.It is impos 阅读全文
posted @ 2012-01-15 22:08 mingziday 阅读(1672) 评论(0) 推荐(0) 编辑
摘要: 英文原文:http://hekafs.org/dist/xlator_api_2.html中文转载来源:http://blog.sina.com.cn/s/blog_7765b3c60100z7lh.html需要修改和完善介绍在我们开始讲解该API细节时,需要明确两个重要点。第一个是文件系统API,其重要功能通过一个dispatch table输出。在GlusterFS中是xlator_fops,它是Linux中file_operations, inode_operations和super_operatioins的组合。为了理解translators如何工作,你必须首先了解这些函数的功能及其相 阅读全文
posted @ 2012-01-15 22:03 mingziday 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 1、使用GCC创建和使用静态库(1)gcc –o mylib.o –c mylib.c //生成o文件(2)ar -rcs libmylib.a mylib.o //生成a文件-c create的意思-r replace的意思,表示当插入的模块名已经在库中存在,则替换同名的模块。(3)cp libmylib.a /usr/lib///拷贝到默认目录(4)编写程序使用库中的函数,需要包含相关的头文件,即可用下面的方式进行编译连接。gcc –o test test.c -L. -lmylib-L指定静态函数库的位置供查找,注意L后面还有'.',表示静态函数库在本目录下查找。-l则指 阅读全文
posted @ 2012-01-15 21:37 mingziday 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 1、工具安装在开始使用autoconf和automake之前,首先确认你的系统安装有GNU的如下软件: automake/autoconf/m4/perl。如果你需要产生共享库(shared library)则还需要GNU Libtool。如果使用RedHat的Linux版本,这几个工具会自动安装,我试验中用SUSE11也安装了所有程序。autoconf:是一个shell脚本的工具,可以自动地配置软件源代码包以适应多种UNIX类系统。由autoconf生成的配置脚本在运行的时候不需要用户的手工干预;通常它们甚至不需要手工给出参数以确定系统的类型。其中autoconf需要用到m4,便于生成脚本。 阅读全文
posted @ 2012-01-15 21:06 mingziday 阅读(1737) 评论(0) 推荐(0) 编辑