摘要: Block Storage (cinder)8776publicurl and adminurlCompute API (nova-api)8773EC2 API 8774openstack API 8775metadata port 3333accessing S3 APICompute p... 阅读全文
posted @ 2015-04-28 10:18 lvmxh 阅读(498) 评论(0) 推荐(0)
摘要: 供参考。Tan0同学给我的解释:两个原因 一个是为了isolation做准备 因为升级主要就是升DB的schema 如果让compute直接读写DB,那每次升级都得升compute 现在隔离开之后 只要升级conductor, 然后compute和conductor之间通过object就可以通信了第... 阅读全文
posted @ 2015-04-01 15:48 lvmxh 阅读(252) 评论(0) 推荐(0)
摘要: 目的:1. 驱动热身。网上有很多类似的文章可供参考。2. 在操作系统中, 编写这个设备的驱动。3. 为写qemu的watchdog驱动练手。有朋友问make的 watchdog驱动 需要什么准备,所以写这个blog。环境:ubuntu 12.04.4热身: 首先编写一个简单的 hello worl... 阅读全文
posted @ 2014-10-23 11:30 lvmxh 阅读(2436) 评论(0) 推荐(0)
摘要: 目的:1. 练习。网上有很多类似的文章可供参考。2. 为写qemu的watchdog驱动练手。有朋友问make的 watchdog驱动 需要什么准备,所以写这个blog。环境:ubuntu 12.04.4耗时(基于熟悉linux环境和操作系统的条件下): 1. make 时间 大于1个小时过程:1... 阅读全文
posted @ 2014-10-23 11:27 lvmxh 阅读(564) 评论(0) 推荐(0)
摘要: 扇区是硬件设备传送数据的基本单元,而块只是硬件设备请求一次I/O操作所涉及的一组相邻字节。在Linux中,块大小必须是2的幂,而且不能超过一个页面。此外,它必须是扇区大小的整数倍,因为每个块必须包含整数个扇区。因此,在PC体系结构中,允许块的大小为512、1024、2048和4096字节。同一个块设... 阅读全文
posted @ 2014-09-07 10:28 lvmxh 阅读(1941) 评论(0) 推荐(0)
摘要: 《 Practical Packet Analysis, 2nd Edition》 学习资料下载 ppa2ecaptures.zip http://www.nostarch.com/packet2.htm 从网站首页摘录以下内容。 It's easy to capture packets with 阅读全文
posted @ 2014-09-06 09:05 lvmxh 阅读(544) 评论(0) 推荐(0)
摘要: 与进程联系的文件结构的关系示意图struct file{ struct list_head f_list; /*所有打开的文件形成一个链表*/ struct dentry *f_dentry; /*指向相关目录项的指针*/ struct vfsmount ... 阅读全文
posted @ 2014-09-04 23:20 lvmxh 阅读(401) 评论(0) 推荐(0)
摘要: 调试网络的方法:(Debugging the kernel using Ftrace) $ watch -n1 -d sudo cat /proc/net/snmp$ watch -n1 -d sudo cat /proc/net/dev 1. $ sudo mount -t debugfs nod 阅读全文
posted @ 2014-09-02 22:29 lvmxh 阅读(773) 评论(0) 推荐(0)
摘要: just a diagram 一目了然。 对于isci 只是用过LIO和STGT 两种后端。 这里有各种后端的比较。 http://scst.sourceforge.net/comparison.html LIO的操作官方文档也非常详细。 http://www.linux-iscsi.org/Doc 阅读全文
posted @ 2014-09-02 22:17 lvmxh 阅读(757) 评论(0) 推荐(0)
摘要: 所有的list函数见 include/linux/list.h自己从 include/linux/list.h 拷贝了一些函数到自己的list.c中, 然后练习了一下。没有别的目的,就是想熟练一下。毕竟linux内核代码中试用了大量的list函数。list的函数太方便使用了。文件:list.c 1... 阅读全文
posted @ 2014-08-24 00:02 lvmxh 阅读(739) 评论(0) 推荐(0)