[sheepdog] [PATCH stable-0.8 13/22] sheep: use correct error code in rebae_vdi()
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Mon Feb 24 08:07:01 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 68de273..de774e8 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