Re: [Qemu-devel] [PATCH v4 2/9] dump: Add API to manipulate cache_data

2013-06-21 Thread Eric Blake
On 06/19/2013 01:29 PM, Andreas Färber wrote: +int init_cache_data(struct cache_data *cd, const char *filename) +{ +int fd; +char *tmpname; + +/* init the tmp file */ +tmpname = getenv(TMPDIR); +if (!tmpname) { +tmpname = (char *)P_tmpdir; P_tmpdir is

Re: [Qemu-devel] [PATCH v4 2/9] dump: Add API to manipulate cache_data

2013-06-19 Thread Andreas Färber
Am 28.05.2013 04:50, schrieb qiaonuo...@cn.fujitsu.com: From: Qiao Nuohan qiaonuo...@cn.fujitsu.com Struct cache_data is associated with a tmp file which is used to store page desc and page data in kdump-compressed format temporarily. CacheData please - but I do find the English term cache

[Qemu-devel] [PATCH v4 2/9] dump: Add API to manipulate cache_data

2013-05-27 Thread qiaonuohan
From: Qiao Nuohan qiaonuo...@cn.fujitsu.com Struct cache_data is associated with a tmp file which is used to store page desc and page data in kdump-compressed format temporarily. The following patch will use these function to gather data of page and cache them in tmp files. Signed-off-by: Qiao