debian/0000775000000000000000000000000012573572331007200 5ustar debian/control0000664000000000000000000000134112423454173010577 0ustar Source: bcache-tools Maintainer: David Mohr Uploaders: Robie Basak Section: utils Priority: optional Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9), pkg-config, uuid-dev, libblkid-dev Homepage: http://bcache.evilpiepirate.org/ Package: bcache-tools Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends}, initramfs-tools Description: bcache userspace tools Bcache allows the use of SSDs to cache other block devices. . Documentation for the run-time interface is included in the kernel tree; in Documentation/bcache.txt. . This package includes udev rules, initramfs support, and the utilities to create a new bcache as well as inspect existing bcache partitions. debian/source/0000775000000000000000000000000012423445153010473 5ustar debian/source/format0000664000000000000000000000001412423445153011701 0ustar 3.0 (quilt) debian/bcache-tools.postinst0000664000000000000000000000015312423445153013342 0ustar #!/bin/sh set -e case "$1" in configure) update-initramfs -u ;; esac #DEBHELPER# exit 0 debian/rules0000775000000000000000000000003612423445153010252 0ustar #!/usr/bin/make -f %: dh $@ debian/bcache-tools.preinst0000664000000000000000000000152712423445153013151 0ustar #!/bin/sh oldscript=/etc/initramfs-tools/hooks/bcache dpkg-maintscript-helper rm_conffile $oldscript 1.0.1-1~ -- "$@" case "$1" in install|upgrade) if [ -f $oldscript ]; then for hash in ca5a1c3f716e3ec69057f657cb79cee2f47c7ef6619983d86e647ac1f9f1f099 \ 74c5338e21c926d3cbbc1b44c5525667dc964fe91189ffa6b11352974ef56950 do if echo "$hash $oldscript" | sha256sum --check --status -; then # Old conffile was not modified, let's just remove it rm -f $oldscript fi done if [ -f $oldscript ]; then # Otherwise, disable and rename it chmod -x $oldscript mv $oldscript $oldscript.dpkg-remove fi fi ;; esac #DEBHELPER# debian/watch0000664000000000000000000000024512423445153010225 0ustar version=3 opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]*)\.tar\.gz/bcache-tools-$1.tar.gz/" \ https://github.com/g2p/bcache-tools/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz debian/README.Debian0000664000000000000000000000244012423445153011234 0ustar bcache-tools for Debian ======================= Notes: * Always back important data up first! * Don't put /boot onto a bcache device (grub doesn't understand the disk format), but it does work fine for the root device if you use a separate (uncached) /boot partition. * A separate /boot may not be necessary on UEFI systems (untested) * You can use lvm for the backing and the caching devices, but currently the initrd will not automatically activate the vg. This is an issue if you plan on caching your root device. A basic setup guide: -------------------- Create a backing device: This formats the partition HDD1 and creates /dev/bcache0. $ make-bcache -B /dev/HDD1 Create a caching device, copy the `Set UUID' for later. $ make-bcache -C /dev/SSD1 Connect the two; this only needs to be done once: $ echo "Set UUID" > /sys/block/bcache0/bcache/attach You probably want write-back caching, otherwise only reads will be sped up. Note that this means a dead SSD could result in data loss. $ echo writeback > /sys/block/bcache0/bcache/cache_mode Find the UUID of the device: $ ls /dev/disk/by-uuid -l | grep bcache0 Use this UUID in /etc/fstab since the /dev/bcacheX number may change when a second bcache device is created. -- David Mohr Wed, 26 Mar 2014 00:09:49 -0600 debian/gbp.conf0000664000000000000000000000012012423445153010603 0ustar [DEFAULT] pristine-tar = True upstream-tag = v%(version)s ignore-branch = True debian/bcache-tools.dirs0000664000000000000000000000012112423445153012413 0ustar usr/sbin/ lib/udev/rules.d/ usr/share/man/man8/ usr/share/initramfs-tools/hooks/ debian/copyright0000664000000000000000000000631112423445153011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: kmo@daterainc.com linux-bcache@vger.kernel.org Source: http://evilpiepirate.org/git/bcache-tools.git Files: * Copyright: 2013 Kent Overstreet License: GPL-2 Files: bcache-super-show.c Copyright: 2013 Gabriel de Perthuis License: GPL-2 Files: bcache.c Copyright: 1996-2001, PostgreSQL Global Development Group License: PostgreSQL Files: debian/* Copyright: 2014 Tom Strickx , 2014 David Mohr License: GPL-2+ 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; version 2 of the License. . 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'. 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'. License: PostgreSQL Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. . IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. debian/changelog0000664000000000000000000000115012573572331011047 0ustar bcache-tools (1.0.7-1~14.04.1) trusty; urgency=medium * Backport from Vivid to Trusty (LP: #1491111) -- LaMont Jones Tue, 11 Aug 2015 03:38:11 -0600 bcache-tools (1.0.7-1) unstable; urgency=medium [ David Mohr ] * Based on work by Gabriel de Perthuis * Initial release. (Closes: #708132) [ Robie Basak ] * Remove unnecessary file bcache-tools.postrm. * debian/copyright fixes. * Add shebang to bcache-tools.preinst. * Drop Vcs-* for now. * Add self to Uploaders. -- Robie Basak Mon, 27 Oct 2014 13:32:08 +0000 debian/compat0000664000000000000000000000000212423445153010371 0ustar 9