OSDN Git Service

raw-posix: remember whether discard failed
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jan 2013 15:26:53 +0000 (16:26 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Jan 2013 09:03:47 +0000 (10:03 +0100)
commitc85191e5c9e14d65cc4281ef3b31f480227aa6dd
treec9089e4c0827f17b010e5603b660472d3911cf65
parent3d4fa43e648f3b169e7ab5dd4e21312e510805d7
raw-posix: remember whether discard failed

Avoid sending system calls repeatedly if they shall fail.  This
does not apply to XFS: if the filesystem-specific ioctl fails,
something weird is happening.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c