[sheepdog] [PATCH stable-0.7 1/3] sheep: use correct error code in rebae_vdi()
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Fri Feb 7 02:12:00 CET 2014
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka 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 2de4a55..d25fe5e 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -446,7 +446,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