Re: [PATCH 5/6] fuse: truncate file if async dio failed

2013-04-17 Thread Miklos Szeredi
On Tue, Dec 18, 2012 at 9:12 AM, Maxim V. Patlasov wrote: > I did exactly the same before sending previous email :) In my tests it works > as expected too (modulo fuse_allow_task() that we can move up). I'll re-send > corrected patch soon. This patch was not yet re-sent. I applied the rest of th

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-18 Thread Maxim V. Patlasov
12/17/2012 11:04 PM, Brian Foster пишет: On 12/17/2012 09:13 AM, Maxim V. Patlasov wrote: Hi, 12/15/2012 12:16 AM, Brian Foster пишет: On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: ... + fuse_do_truncate() looks fairly close to fuse_do_setattr(). Is there any reason we couldn't make fuse

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-17 Thread Brian Foster
On 12/17/2012 09:13 AM, Maxim V. Patlasov wrote: > Hi, > > 12/15/2012 12:16 AM, Brian Foster пишет: >> On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: ... >>> + >> fuse_do_truncate() looks fairly close to fuse_do_setattr(). Is there any >> reason we couldn't make fuse_do_setattr() non-static, cha

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-17 Thread Maxim V. Patlasov
Hi, 12/15/2012 12:16 AM, Brian Foster пишет: On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: The patch improves error handling in fuse_direct_IO(): if we successfully submitted several fuse requests on behalf of synchronous direct write extending file and some of them failed, let's try to do o

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-14 Thread Brian Foster
On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: > The patch improves error handling in fuse_direct_IO(): if we successfully > submitted several fuse requests on behalf of synchronous direct write > extending file and some of them failed, let's try to do our best to clean-up. > > Signed-off-by: Ma

[PATCH 5/6] fuse: truncate file if async dio failed

2012-12-14 Thread Maxim V. Patlasov
The patch improves error handling in fuse_direct_IO(): if we successfully submitted several fuse requests on behalf of synchronous direct write extending file and some of them failed, let's try to do our best to clean-up. Signed-off-by: Maxim Patlasov --- fs/fuse/file.c | 55 ++

[PATCH 5/6] fuse: truncate file if async dio failed

2012-12-09 Thread Maxim V. Patlasov
The patch improves error handling in fuse_direct_IO(): if we successfully submitted several fuse requests on behalf of synchronous direct write extending file and some of them failed, let's try to do our best to clean-up. Signed-off-by: Maxim Patlasov --- fs/fuse/file.c | 55 ++