file-posix: Handle EINTR in preallocation=full write
PATCH 1/1 file-posix: Handle EINTR in preallocation=full write
Signed-off-by Fam Zheng <[email protected]>
--- block/file-posix.c | 3 +++ 1 file changed, 3 insertions(+)
block/file-posix.c +3 -0
@@ -1646,6 +1646,9 @@ static int handle_aiocb_truncate(RawPosixAIOData *aiocb) num =MIN (left,65536 ); result =write (fd, buf, num);if (result <0 ) { +if (errno ==EINTR ) { +continue ; + } result = -errno;error_setg_errno (errp, -result,"Could not write zeros for preallocation" );
Signature · 1 line
2.17.1
Kevin Wolf
AppliedAm 27.07.2018 um 08:53 hat Fam Zheng geschrieben:
Quoted 2 lines
Signed-off-by Fam Zheng <[email protected]>
Thanks, applied to the block branch.
Kevin
Quoted 2 lines · Fam Zheng
Signed-off-by Fam Zheng <[email protected]>
Actually cc [email protected]