fuse: truncate file if async dio failed
authorMaxim Patlasov <mpatlasov@parallels.com>
Tue, 18 Dec 2012 10:05:08 +0000 (14:05 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 18 Apr 2013 08:55:24 +0000 (10:55 +0200)
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.

Changed in v2: reuse fuse_do_setattr(). Thanks to Brian for suggestion.

Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found