debian/0000755000000000000000000000000012216654072007173 5ustar debian/blktap-dkms.dkms0000644000000000000000000000001212125400111012233 0ustar dkms.conf debian/copyright0000644000000000000000000000501612125400111011106 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: blktap-dkms Upstream-Contact: Jonathan Ludlam Source: git clone http://github.com/jonludlam/blktap-dkms.git Files: debian/* Copyright: (c) 2011, Jon Ludlam (c) 2011, Thomas Goirand License: 2 clauses BSD Files: * Copyright: (c) 2011, Citrix Systems, Inc. License: GPL-2 License: 2 clauses BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file /usr/share/common-licenses/GPL-2 debian/source/0000755000000000000000000000000012125400156010462 5ustar debian/source/format0000644000000000000000000000001412125400111011657 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000246312216654072011052 0ustar blktap-dkms (2.0.93-0ubuntu4) saucy; urgency=low * Add armhf to the Architecture list, to make bkltap-utils installable. -- Adam Conrad Thu, 19 Sep 2013 14:01:04 -0600 blktap-dkms (2.0.93-0ubuntu3) raring; urgency=low * Drop the dependency on linux-headers, not actually needed and pulls wrong headers sometimes. -- Dmitry Shachnev Fri, 22 Mar 2013 14:02:32 +0400 blktap-dkms (2.0.93-0ubuntu2) raring; urgency=low * Fix compilation for kernels 3.7+ -- Vincent Bernardoff Mon, 04 Mar 2013 19:03:50 +0000 blktap-dkms (2.0.93-0ubuntu1) quantal; urgency=low * New upstream release which fixes compatiblity with linux 3.5 kernel (LP: #1028135). -- James Page Fri, 07 Sep 2012 17:28:22 +0100 blktap-dkms (2.0.91-1) unstable; urgency=low * New upstream release fixing: - We weren't including explicitly, and presumably something has changed meaning that it doesn't get included transitively from something else. Fix this by including it in blktap.h -- Thomas Goirand Sat, 10 Dec 2011 05:46:01 +0000 blktap-dkms (2.0.90-1) unstable; urgency=low * Initial release (Closes: #648691) -- Thomas Goirand Fri, 04 Nov 2011 12:56:27 +0400 debian/compat0000644000000000000000000000000212125400111010347 0ustar 7 debian/rules0000755000000000000000000000171712125400111010237 0ustar #!/usr/bin/make -f UPSTREAM_VERSION := $(shell dpkg-parsechangelog | grep Version: | cut -d" " -f2 | cut -d"-" -f1) UPSTREAM_FOLDER := blktap-dkms-$(UPSTREAM_VERSION) TEMP_BUILD_UP := debian/build-upstream-tarball TEMP_UP_FOLDER := $(TEMP_BUILD_UP)/$(UPSTREAM_FOLDER) ORIG_TAR_GZ_NAME := blktap-dkms_$(UPSTREAM_VERSION).orig.tar.gz FILE_LIST := $(shell ls | grep -v debian) gen-upstream-tarball: @echo "Building: "$(ORIG_TAR_GZ_NAME) mkdir -p $(TEMP_UP_FOLDER) cp -auxf $(FILE_LIST) $(TEMP_UP_FOLDER) cd $(TEMP_BUILD_UP) && tar -cvzf $(CURDIR)/../$(ORIG_TAR_GZ_NAME) $(UPSTREAM_FOLDER) && cd $(CURDIR) mkdir -p ../build-area cp ../$(ORIG_TAR_GZ_NAME) ../build-area rm -rf $(TEMP_BUILD_UP) %: dh "$@" --with dkms # we don't actually build/clean the source here, it's dkms override_dh_auto_clean: rm -f debian/blktap-dkms.install override_dh_auto_build: sed 's/@UPSTREAM_VERSION@/'$(UPSTREAM_VERSION)/ debian/blktap-dkms.install.in >debian/blktap-dkms.install debian/control0000644000000000000000000000347412216653724010611 0ustar Source: blktap-dkms Section: kernel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Xen Team Uploaders: Jon Ludlam , Thomas Goirand Standards-Version: 3.9.2 Build-Depends: debhelper (>= 7.0.50~), dkms Vcs-Browser: http://git.debian.org/?p=pkg-xen/blktap-dkms.git Vcs-Git: http://git.debian.org/git/pkg-xen/blktap-dkms.git Homepage: http://www.xen.org/ Package: blktap-dkms Architecture: i386 amd64 armhf Depends: ${misc:Depends}, dkms, linux-libc-dev, libc6-dev Description: Xen API blktap kernel component DKMS package The Xen Cloud Platform (XCP) is an open source enterprise-ready server virtualization and cloud computing platform, delivering the Xen Hypervisor with support for a range of guest operating systems. This package is part of it. It implements the userland part of the blktap driver. . Virtual Hard Disk (VHD) is a file format standard which maps logical hard disk contents to a physical disk image format, which can then be more efficiently stored in a variety of different storage types, such as file systems or logical volumes. . VHDs are container files storing block metadata alongside a virtual disk's contents, in a single disk image. The metadata enables advanced storage backend capabilities, such as thin provisioning, disk image snapshotting, and coalescing of differencing disks. . Libvhd is a library to access VHD format metadata. It provides disk image initialization, inspection and manipulation to both VHD user utilities and the VHD disk driver in Blktap. . This package contains the source for the blktap kernel module. It includes DKMS support so that installation of this package will result in a working blktap kernel module. debian/gbp.conf0000644000000000000000000000637212125400111010600 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] # the default build command: #builder = debuild -us -uc # the default clean command: #cleaner = debuild clean # the default branch for upstream sources: upstream-branch = upstream-sid # the default branch for the debian patch: debian-branch = debian-sid # the default tag formats used: upstream-tag = master/%(version)s debian-tag = debian/%(version)s # use pristine-tar: pristine-tar = False # don't check if debian-branch == current branch: #ignore-branch = True # Use color when on a terminal, alternatives: on/true, off/false or auto #color = auto # Options only affecting git-buildpackage [git-buildpackage] # Look for a tag matching the upstream version when creating a tarball upstream-tree = branch # uncomment this to automatically GPG sign tags: #sign-tags = True # keyid to GPG sign tags with: #keyid = 0xdeadbeef # push to a remote repository after a successful tag: #posttag = git-push git.example.com # call lintian after a successful build: #postbuild = lintian $GBP_CHANGES_FILE # let package generate upstream changelog before build: #prebuild = GIT_DIR=$GBP_GIT_DIR debian/autogen.sh # use this for more svn-buildpackage like behaviour: export-dir = ../build-area/ #tarball-dir = ../tarballs/ #ignore-new = True #export = HEAD # compress with bzip2 #compression = bzip2 # use best compression #compression-level = best # Don't send notifications, alternatives: on/true, off/false or auto #notify = off # Transparently handle submodules # submodules = True # Options only affecting git-import-orig [git-import-orig] # set a different upstream branch to import to: #upstream-branch = newupstream # set a different branch to merge to: #debian-branch = dfsgclean # don't merge to debian branch by default: #merge = False # import filter: #filter = .svn # filter out files from tarball passed to pristine tar: #filter-pristine-tar = True # run hook after the import: #postimport = git-dch -N%(version)s -S -a --debian-branch=$GBP_BRANCH # emulate old behaviour of calling dch: #postimport = dch -v%(version)s New Upstream Version # commit message: #import-msg = New upstream version %(version)s # Options only affecting git-import-dsc [git-import-dsc] # set a different upstream branch: #upstream-branch = svn-upstream # import filter: #filter = [ 'CVS', '.cvsignore' ] #force committer to be the same as author #author-is-committer = True #same for the date #author-date-is-committer-date = True # Options only affecting git-dch [git-dch] # options passed to git-log: #git-log = --no-merges # next snapshot number: #snapshot-number = snapshot + 1 # include 7 digits of the commit id in the changelog enty: #id-length = 7 # don't include information from meta tags: #meta = False # what tags to look for to generate bug-closing changelog entries: #meta-closes = Closes|LP # include the full commit message in the changelog: #full = True # ignore Signed-off-by: lines: #ignore-regex=(Signed-off|Acked)-by: # use author name and email from git-config: #git-author = True # Options only affecting gbp-pq [gbp-pq] #patch-numbers = False # Options only affecting gbp-clone [gbp-clone] #pristine-tar = True # Options only affecting gbp- [gbp-pull] #pristine-tar = True [gbp-create-remote-repo] # disable remote branch tracking #track = False debian/patches/0000755000000000000000000000000012125400156010611 5ustar debian/patches/fix-vm-reserved.patch0000644000000000000000000000262412125400111014650 0ustar From: Vincent Bernardoff Subject: Fix compilation on kernels 3.7+ * fix complilation on kernels 3.7+ Origin: upstream, https://github.com/xen-org/blktap-dkms/commit/3bd35d662de12139b7ed5b6dc1076a231a651d10 Bug: https://bugs.launchpad.net/ubuntu/+source/blktap-dkms/+bug/1078843 --- a/ring.c +++ b/ring.c @@ -14,7 +14,7 @@ * GNU General Public License version 2 for more details. * * You should have received a copy of the GNU General Public License - * version 2 along with Blktap2. If not, see + * version 2 along with Blktap2. If not, see * . * * @@ -28,12 +28,19 @@ #include #include +/* VM_RESERVED has disappeared starting from Linux 3.7 and has been + * replaced by VM_DONTDUMP since then. + */ +#ifndef VM_DONTDUMP +#define VM_DONTDUMP VM_RESERVED +#endif + #include "blktap.h" int blktap_ring_major; static struct cdev blktap_ring_cdev; - /* + /* * BLKTAP - immediately before the mmap area, * we have a bunch of pages reserved for shared memory rings. */ @@ -436,7 +443,7 @@ } vma->vm_flags |= VM_DONTCOPY; - vma->vm_flags |= VM_RESERVED; + vma->vm_flags |= VM_DONTDUMP; return 0; } @@ -472,7 +479,7 @@ vma->vm_private_data = tap; vma->vm_flags |= VM_DONTCOPY; - vma->vm_flags |= VM_RESERVED; + vma->vm_flags |= VM_DONTDUMP; vma->vm_ops = &blktap_ring_vm_operations; debian/patches/series0000644000000000000000000000002612125400111012013 0ustar fix-vm-reserved.patch debian/blktap-dkms.install.in0000644000000000000000000000025312125400111013357 0ustar *.c usr/src/blktap-@UPSTREAM_VERSION@ *.h usr/src/blktap-@UPSTREAM_VERSION@ Makefile usr/src/blktap-@UPSTREAM_VERSION@ dkms.conf usr/src/blktap-@UPSTREAM_VERSION@