qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [v1 Patch 5/10]Qemu: raw-posix image file reopen


From: Eric Blake
Subject: Re: [Qemu-devel] [v1 Patch 5/10]Qemu: raw-posix image file reopen
Date: Wed, 04 Jul 2012 05:32:36 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 07/03/2012 11:15 PM, Shrinidhi Joshi wrote:
> On Saturday 16 June 2012 03:41 AM, Eric Blake wrote:
>>  On 06/15/2012 02:48 PM, Supriya Kannery wrote:
>> > raw-posix driver changes for bdrv_reopen_xx functions to
>> > safely reopen image files. Reopening of image files while
>> > changing hostcache dynamically is handled here.
>> >

> raw-posix driver changes for bdrv_reopen_xx functions to
> safely reopen image files. Reopening of image files while
> changing hostcache dynamically is handled here.

A resubmission of a fixed patch is better handled as a new thread with a
v2 in the subject line, rather than embedded as a reply to the v1 comments.


> +    raw_stash_state(raw_rs->stash_s, s);
> +    s->fd = dup3(raw_rs->stash_s->fd,s->fd,O_CLOEXEC);
> +

dup3() is not universally available (it is not in POSIX, yet).  You need
configure checks to determine if it exists, and a graceful fallback
using dup2()/fcntl(F_GETFD/F_SETFD) if not.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]