Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-07 Thread Kevin Wolf
Am 06.09.2012 17:34, schrieb Corey Bryant: On 09/06/2012 05:23 AM, Kevin Wolf wrote: Am 05.09.2012 18:43, schrieb Jeff Cody: +} + +int fcntl_flags = O_APPEND | O_ASYNC | O_NONBLOCK; +#ifdef O_NOATIME +fcntl_flags |= O_NOATIME; +#endif +if ((raw_s-open_flags

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-07 Thread Corey Bryant
On 09/07/2012 06:40 AM, Kevin Wolf wrote: Am 06.09.2012 17:34, schrieb Corey Bryant: On 09/06/2012 05:23 AM, Kevin Wolf wrote: Am 05.09.2012 18:43, schrieb Jeff Cody: +} + +int fcntl_flags = O_APPEND | O_ASYNC | O_NONBLOCK; +#ifdef O_NOATIME +fcntl_flags |= O_NOATIME; +#endif

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-06 Thread Kevin Wolf
Am 05.09.2012 18:43, schrieb Jeff Cody: +} + +int fcntl_flags = O_APPEND | O_ASYNC | O_NONBLOCK; +#ifdef O_NOATIME +fcntl_flags |= O_NOATIME; +#endif +if ((raw_s-open_flags ~fcntl_flags) == (s-open_flags ~fcntl_flags)) { +/* dup the original fd */ +/*

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-06 Thread Corey Bryant
On 09/06/2012 05:23 AM, Kevin Wolf wrote: Am 05.09.2012 18:43, schrieb Jeff Cody: +} + +int fcntl_flags = O_APPEND | O_ASYNC | O_NONBLOCK; +#ifdef O_NOATIME +fcntl_flags |= O_NOATIME; +#endif +if ((raw_s-open_flags ~fcntl_flags) == (s-open_flags ~fcntl_flags)) { +/*

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-05 Thread Kevin Wolf
Am 30.08.2012 20:47, schrieb Jeff Cody: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the prepare() stage, and copied over to the live

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-09-05 Thread Jeff Cody
On 09/05/2012 11:30 AM, Kevin Wolf wrote: Am 30.08.2012 20:47, schrieb Jeff Cody: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-08-31 Thread Jeff Cody
On 08/30/2012 06:15 PM, Eric Blake wrote: On 08/30/2012 11:47 AM, Jeff Cody wrote: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-08-31 Thread Kevin Wolf
Am 31.08.2012 16:42, schrieb Jeff Cody: On 08/30/2012 06:15 PM, Eric Blake wrote: On 08/30/2012 11:47 AM, Jeff Cody wrote: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-08-31 Thread Jeff Cody
On 08/31/2012 10:49 AM, Kevin Wolf wrote: Am 31.08.2012 16:42, schrieb Jeff Cody: On 08/30/2012 06:15 PM, Eric Blake wrote: On 08/30/2012 11:47 AM, Jeff Cody wrote: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_*

[Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-08-30 Thread Jeff Cody
This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the prepare() stage, and copied over to the live structure during commit(). Upon abort(), all

Re: [Qemu-devel] [PATCH 3/7] block: raw-posix image file reopen

2012-08-30 Thread Eric Blake
On 08/30/2012 11:47 AM, Jeff Cody wrote: This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the prepare() stage, and copied over to the live