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; >

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 > > 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 data" irritating as it

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

2013-05-27 Thread qiaonuohan
From: Qiao Nuohan 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 Nuohan Reviewed-by: Zhang