From: Hitoshi Mitake <[email protected]>

Currently it is not supported.

Cc: MORITA Kazutaka <[email protected]>
Cc: Valerio Pachera <[email protected]>
Cc: Alessandro Bolgia <[email protected]>
Signed-off-by: Hitoshi Mitake <[email protected]>
Signed-off-by: Liu Yuan <[email protected]>
---
 dog/vdi.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dog/vdi.c b/dog/vdi.c
index fa289f1..e469f58 100644
--- a/dog/vdi.c
+++ b/dog/vdi.c
@@ -690,6 +690,11 @@ static int vdi_snapshot(int argc, char **argv)
        if (ret != EXIT_SUCCESS)
                return ret;
 
+       if (inode->store_policy) {
+               sd_err("creating a snapshot of hypervolume is not supported");
+               return EXIT_FAILURE;
+       }
+
        ret = dog_write_object(vid_to_vdi_oid(vid), 0,
                               vdi_cmd_data.snapshot_tag,
                               SD_MAX_VDI_TAG_LEN,
-- 
1.9.1

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to