Re: [Qemu-devel] [PATCH v2] virtiofsd: fix compile error if 'F_OFD_GETLK' not defined

2019-08-04 Thread piaojun
Hi Daniel and Dave, On 2019/8/2 19:10, Daniel P. Berrangé wrote: > On Fri, Aug 02, 2019 at 11:53:52AM +0100, Dr. David Alan Gilbert wrote: >> * piaojun (piao...@huawei.com) wrote: >>> Use F_GETLK for fcntl when F_OFD_GETLK not defined, such as kernel 3.10. >>> >>> Signed-off-by: Jun Piao >> >> >>

Re: [Qemu-devel] [PATCH v2] virtiofsd: fix compile error if 'F_OFD_GETLK' not defined

2019-08-02 Thread Daniel P . Berrangé
On Fri, Aug 02, 2019 at 11:53:52AM +0100, Dr. David Alan Gilbert wrote: > * piaojun (piao...@huawei.com) wrote: > > Use F_GETLK for fcntl when F_OFD_GETLK not defined, such as kernel 3.10. > > > > Signed-off-by: Jun Piao > > > > --- > > v2: > > - Use F_OFD_SETLK to replace F_OFD_GETLK in #ifdef

Re: [Qemu-devel] [PATCH v2] virtiofsd: fix compile error if 'F_OFD_GETLK' not defined

2019-08-02 Thread Dr. David Alan Gilbert
* piaojun (piao...@huawei.com) wrote: > Use F_GETLK for fcntl when F_OFD_GETLK not defined, such as kernel 3.10. > > Signed-off-by: Jun Piao > --- > v2: > - Use F_OFD_SETLK to replace F_OFD_GETLK in #ifdef. > > --- > contrib/virtiofsd/passthrough_ll.c | 8 > 1 file changed, 8 inserti

[Qemu-devel] [PATCH v2] virtiofsd: fix compile error if 'F_OFD_GETLK' not defined

2019-08-02 Thread piaojun
Use F_GETLK for fcntl when F_OFD_GETLK not defined, such as kernel 3.10. Signed-off-by: Jun Piao --- v2: - Use F_OFD_SETLK to replace F_OFD_GETLK in #ifdef. --- contrib/virtiofsd/passthrough_ll.c | 8 1 file changed, 8 insertions(+) diff --git a/contrib/virtiofsd/passthrough_ll.c b/c