On Tue, 08/16 15:59, Fam Zheng wrote: > diff --git a/block/Makefile.objs b/block/Makefile.objs > index fa4d8b8..141dec5 100644 > --- a/block/Makefile.objs > +++ b/block/Makefile.objs > @@ -40,6 +40,7 @@ gluster.o-libs := $(GLUSTERFS_LIBS) > ssh.o-cflags := $(LIBSSH2_CFLAGS) > ssh.o-libs := $(LIBSSH2_LIBS) > archipelago.o-libs := $(ARCHIPELAGO_LIBS) > -dmg.o-libs := $(BZIP2_LIBS) > +block-obj-$(if $(CONFIG_BZIP2),m,n) += dmg-bz2.o > +dmg-bz2.o-libs := $(BZIP2_LIBS) > qcow.o-libs := -lz > linux-aio.o-libs := -laio > diff --git a/block/dmg-bz2.c b/block/dmg-bz2.c > new file mode 100644 > index 0000000..a60e398 > --- /dev/null > +++ b/block/dmg-bz2.c > @@ -0,0 +1,62 @@ > +/* > + * DMG bzip2 uncompression > + * > + * Copyright (c) 2004 Johannes E. Schindelin > + * Copyright (c) 2016 Red Hat, Int.
Apparently I forgot to address Max's comments on v1. :( Fam
