// 清除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
Description Resource Path Location Type
Error occured processing XML 'Cannot find class [springmvc.extention.BeanArgumentResolver]'. See Error Log for more details applicationContext.xml
maven在管...
分类:
编程语言 时间:
2014-07-26 02:22:46
阅读次数:
224
(linux shell)第二章--命令之乐(一)...
分类:
系统相关 时间:
2014-07-26 02:19:46
阅读次数:
237
题目:hdu 4003 Find Metal Mineral
题意:火星上发现了一些n个矿厂,有 k 个机器人从 s 点出发采矿,给出路段间的花费cost,求最小的花费采所有的矿。
分类:树形dp + 分组背包
分析:结论1:假如我们从 i点出发k个机器人采完以 k 为根节点的所有矿又回到 i 点,那么花费为 i 为根节点的cost 的和 乘以 k。
对于每个节点...
分类:
其他好文 时间:
2014-07-26 02:15:36
阅读次数:
209
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2014-07-26 01:42:16
阅读次数:
263
There can be an additional spot ghd australia online somerrn which you could view movie previews of all dvds which can be not even GHD Butterfly Purpl...
分类:
其他好文 时间:
2014-07-26 00:26:36
阅读次数:
228
page.evaluate( function() { // find element to send click to var element = document.querySelector( 'span.control.critical.closer' ); // creat...
分类:
Web程序 时间:
2014-07-26 00:11:26
阅读次数:
310
org.hibernate.LazyInitializationException: could not initialize proxy - no Session延迟初始化错误是运用Hibernate开发项目时最常见的错误。如果对一个类或者集合配置了延迟检索策略,那么必须当代理类实例或代理集合处于...
分类:
其他好文 时间:
2014-07-26 00:03:46
阅读次数:
357