]> git.proxmox.com Git - mirror_lxc.git/commitdiff
aufs: mark deprecated
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 29 Jul 2017 16:16:10 +0000 (18:16 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 31 Jul 2017 21:34:18 +0000 (23:34 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/storage/storage.c

index aafa2a393fe3df3e5c91841c7f594ede544cec1a..7da87161b0b4753dbe99512c8e0c764337eb0ecb 100644 (file)
@@ -274,6 +274,11 @@ struct lxc_storage *storage_get(const char *type)
        bdev->ops = bdevs[i].ops;
        bdev->type = bdevs[i].name;
 
+       if (!strcmp(bdev->type, "aufs"))
+               WARN("The \"aufs\" driver will is deprecated and will soon be "
+                    "removed. For similar functionality see the \"overlay\" "
+                    "storage driver");
+
        return bdev;
 }
 
@@ -607,6 +612,11 @@ struct lxc_storage *storage_init(struct lxc_conf *conf, const char *src,
        if (strcmp(bdev->type, "nbd") == 0)
                bdev->nbd_idx = conf->nbd_idx;
 
+       if (!strcmp(bdev->type, "aufs"))
+               WARN("The \"aufs\" driver will is deprecated and will soon be "
+                    "removed. For similar functionality see the \"overlay\" "
+                    "storage driver");
+
        return bdev;
 }