//	清除thin pool
1.1 func (d *Driver) Cleanup() error {
	// 停止thin pool
	err := d.DeviceSet.Shutdown()
	return err
}
//	当加载新镜像时,添加一个新thin device
//	id为containerid或imageid
1.2 func (d *Driver) Create(i...
                            
                            
                                分类:
移动开发   时间:
2014-07-26 02:59:46   
                                阅读次数:
302
                             
                    
                        
                            
                            
                                //	在thin pool中创建一个新thin device
//	调用路径:driver.Create()
1.1 func (devices *DeviceSet) AddDevice(hash, baseHash string) error {
	//查找父device
	baseInfo, err := devices.lookupDevice(baseHash)
	if err != n...
                            
                            
                                分类:
移动开发   时间:
2014-07-26 02:53:26   
                                阅读次数:
347
                             
                    
                        
                            
                            
                                //	创建thin pool
//	调用路径:NewDeviceSet->initDevmapper->createPool
1.1 func createPool(poolName string, dataFile, metadataFile *os.File, poolBlockSize uint32) error {
	//通过task封装与libdevmapper的交互
	task, er...
                            
                            
                                分类:
移动开发   时间:
2014-07-26 02:45:06   
                                阅读次数:
297
                             
                    
                        
                            
                            
                                微软近期Open的职位:SDE2 (Windows driver)Job title:	Software Development Engineer 2Location:	Shanghai, China Do you want to join Microsoft and work on the lat...
                            
                            
                         
                    
                        
                            
                            
                                // thin device数据结构
type DevInfo struct {
	Hash          string     `json:"-"`
	DeviceId      int        `json:"device_id"`
	Size          uint64     `json:"size"`
	TransactionId uint64     `json:"tran...
                            
                            
                                分类:
移动开发   时间:
2014-07-25 11:02:35   
                                阅读次数:
549
                             
                    
                        
                            
                            
                                MongoDB java driver的基本CRUD示例代码
                            
                            
                                分类:
数据库   时间:
2014-07-24 14:40:26   
                                阅读次数:
375
                             
                    
                        
                            
                            
                                pleaseuseesxclicommand~#esxclistoragecoreadapterlistHBANameDriverLinkStateUIDDescription-------------------------------------------------------------------------------------------------------------vmhba0ahcilink-n/asata.vmhba0(0:0:31.2)IntelCorporationPatsb..
                            
                            
                                分类:
其他好文   时间:
2014-07-23 21:17:46   
                                阅读次数:
799
                             
                    
                        
                            
                            
                                public void clickReportIcon(){ String initialWindowHandle = driver.getWindowHandle(); //保存原始的浏览器窗口 page.getReportIcon().click(); //这个操作之后将会弹出另外一个浏...
                            
                            
                                分类:
其他好文   时间:
2014-07-23 15:14:46   
                                阅读次数:
227
                             
                    
                        
                            
                            
                                Statement:
通过类的名字,把类(元数据对象)加载到内存中,加载驱动,由于是对数据流做操作,一定要加异常处理,后面也是
	// 通过类的名字,把类(元数据对象)加载到内存中
	Class.forName("com.mysql.jdbc.Driver");
创建一个数据库链接,getConnection方法中的第一个参数是指数据库类型和所操作数据库的名称,第二个参数是指用户名,第三个参...
                            
                            
                                分类:
数据库   时间:
2014-07-23 13:05:36   
                                阅读次数:
312
                             
                    
                        
                            
                            
                                概述一个Spark的Job分为多个stage,最后一个stage会包含一个或多个ResultTask,前面的stages会包含一个或多个ShuffleMapTasks。ResultTask运行并将结果返回给driver application。ShuffleMapTask将task的output依据...
                            
                            
                                分类:
其他好文   时间:
2014-07-23 12:43:36   
                                阅读次数:
376