If you go to the trouble to request a -s (snapshot) clone of
a container which is dir backingstore, then you deserve an
overlayfs clone.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
}
}
+ /*
+ * If newtype is NULL and snapshot is set, then use overlayfs
+ */
+ if (!bdevtype && snap && strcmp(orig->type , "dir") == 0)
+ bdevtype = "overlayfs";
+
new = bdev_get(bdevtype ? bdevtype : orig->type);
if (!new) {
ERROR("no such block device type: %s", bdevtype ? bdevtype : orig->type);