diff options
author | Liu Yuan <tailai.ly@taobao.com> | 2012-12-17 14:17:26 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-01-02 16:08:58 +0100 |
commit | bd751f2204a03d6fcd47a4b4b12ac534d2ecbea7 (patch) | |
tree | d06a3a3e97f20444af4fe75df5dab640de060e64 /hw/arm_mptimer.c | |
parent | fccedc624c425e3acb1557f9f9b13104427ec5ce (diff) |
sheepdog: don't update inode when create_and_write fails
For the error case such as SD_RES_NO_SPACE, we shouldn't update the inode bitmap
to avoid the scenario that the object is allocated but wasn't created at the
server side. This will result in VM's IO error on the failed object.
Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/arm_mptimer.c')
0 files changed, 0 insertions, 0 deletions