[Qemu-devel] [PATCH] sheepdog: don't update inode when create_and_write fails

2012-12-15 Thread Liu Yuan
From: Liu Yuan 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 Cc: Kevin Wolf Signed-off-by: Li

[Qemu-devel] [PATCH] sheepdog: don't update inode when create_and_write fails

2012-12-15 Thread Liu Yuan
From: Liu Yuan 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 Cc: Kevin Wolf Signed-off-by: Li