访问控制(客户端)在transport层做 加解密(服务器)的密钥要往下传,怎么传?还是直接就把模块加在transport层? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~分界线~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ int main() { 987 set_global_ctx_ptr(ctx); //将ctx设为全局的环境变量 991 /* parsing command linearguments */ 1017 ctx->iobuf_pool = iobuf_pool_new (8* 1048576, ctx->page_size + 4096); 1018 ctx->event_pool = event_pool_new(DEFAULT_EVENT_POOL_SIZE); 1054 /* initializing logs */ 1088 /* setting up environment */ 1109 /* getting and parsing volume file */ if ((specfp = _get_specfp (ctx)) == NULL) //打开vol文件 if ((graph = _parse_specfp (ctx, specfp))== NULL) àtree = file_to_xlator_tree (ctx, specfp); //里面调用yyparse(),用yacc来解析得到xlator_t树 while (trav){ //遍历该树 dict_get (trav->options, //选项录入字典 } 1148 if((graph = _add_fuse_mount (graph)) == NULL) { 调用à217 if (xlator_set_type (top, ZR_XLATOR_FUSE)== -1) { //打开各个动态链接库 调用à648 fill_defaults (xl); //设置该xlator下,各个默认文件操作函数指针的值 1158 /* daemonize now */ 1181 gf_timer_registry_init (ctx);
|