if (!strcmp(orig->type, "btrfs") && !strcmp(new->type, "btrfs")) {
bool bret = false;
if (snap || btrfs_same_fs(orig->dest, new->dest) == 0)
- bret = new->ops->create_snapshot(c0->lxc_conf, orig, new, 0);
+ bret = new->ops->create_snapshot(c0->lxc_conf, orig, new);
else
bret = new->ops->create_clone(c0->lxc_conf, orig, new, 0);
if (!bret)
bool (*create_clone)(struct lxc_conf *conf, struct bdev *orig,
struct bdev *new, uint64_t newsize);
bool (*create_snapshot)(struct lxc_conf *conf, struct bdev *orig,
- struct bdev *new, uint64_t newsize);
+ struct bdev *new);
bool can_snapshot;
bool can_backup;
};
}
bool btrfs_create_snapshot(struct lxc_conf *conf, struct bdev *orig,
- struct bdev *new, uint64_t newsize)
+ struct bdev *new)
{
int ret;
bool btrfs_create_clone(struct lxc_conf *conf, struct bdev *orig,
struct bdev *new, uint64_t newsize);
bool btrfs_create_snapshot(struct lxc_conf *conf, struct bdev *orig,
- struct bdev *new, uint64_t newsize);
+ struct bdev *new);
#endif // __LXC_BTRFS_H