[sheepdog] [PATCH] sheep: use correct error code in rebae_vdi()
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Mon Feb 3 02:05:49 CET 2014
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
sheep/vdi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/vdi.c b/sheep/vdi.c
index 3414b05..a50d3df 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -461,7 +461,7 @@ static int rebase_vdi(const struct vdi_iocb *iocb, uint32_t new_snapid,
sizeof(iocb->time),
offsetof(struct sd_inode, snap_ctime), false);
if (ret != SD_RES_SUCCESS) {
- ret = SD_RES_BASE_VDI_READ;
+ ret = SD_RES_VDI_WRITE;
goto out;
}
--
1.7.10.4
More information about the sheepdog
mailing list