debian/0000775000000000000000000000000011767376507007213 5ustar debian/copyright0000664000000000000000000000245011766134412011131 0ustar X-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat X-Debianized-By: Thibaut Paumard X-Debianized-Date: Wed, 06 Feb 2008 10:51:16 +0100 X-Source-Downloaded-From: http://intgat.tigress.co.uk/rmy/uml/zerofree-1.0.1.tgz X-Upstream-Author: Ron M. Yorston Files: * Copyright: © 2004, Ron M. Yorston 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 (to receive a copy of the GNU * General Public License, write to the Free Software Foundation, Inc., 51 * Franklin St, Fifth Floor, Boston, MA 02110-1301, USA). X-Comment: On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: © 2008, Thibaut Paumard License: GPL-2+ debian/compat0000664000000000000000000000000211766134412010373 0ustar 5 debian/watch0000664000000000000000000000010111766134412010216 0ustar version=3 http://intgat.tigress.co.uk/rmy/uml/zerofree-(.*)\.tgz debian/control0000664000000000000000000000332411766134412010602 0ustar Source: zerofree Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Thibaut Paumard Build-Depends: debhelper (>= 5), e2fslibs-dev, docbook-to-man Standards-Version: 3.9.3 DM-Upload-Allowed: yes Homepage: http://intgat.tigress.co.uk/rmy/uml/index.html Package: zerofree Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: zero free blocks from ext2, ext3 and ext4 file-systems Zerofree finds the unallocated blocks with non-zero value content in an ext2, ext3 or ext4 file-system and fills them with zeroes (zerofree can also work with another value than zero). This is mostly useful if the device on which this file-system resides is a disk image. In this case, depending on the type of disk image, a secondary utility may be able to reduce the size of the disk image after zerofree has been run. Zerofree requires the file-system to be unmounted or mounted read-only. . The usual way to achieve the same result (zeroing the unused blocks) is to run "dd" do create a file full of zeroes that takes up the entire free space on the drive, and then delete this file. This has many disadvantages, which zerofree alleviates: * it is slow; * it makes the disk image (temporarily) grow to its maximal extent; * it (temporarily) uses all free space on the disk, so other concurrent write actions may fail. . Zerofree has been written to be run from GNU/Linux systems installed as guest OSes inside a virtual machine. If this is not your case, you almost certainly don't need this package. (One other use case would be to erase sensitive data a little bit more securely than with a simple "rm"). debian/patches/0000775000000000000000000000000011767376206010636 5ustar debian/patches/series0000664000000000000000000000003611767376146012055 0ustar 01_fix-as-needed-linking.diff debian/patches/01_fix-as-needed-linking.diff0000664000000000000000000000061211764153600016015 0ustar Index: zerofree-1.0.1/Makefile =================================================================== --- zerofree-1.0.1.orig/Makefile 2010-12-05 13:45:16.000000000 +0100 +++ zerofree-1.0.1/Makefile 2010-12-05 13:45:35.000000000 +0100 @@ -1,7 +1,7 @@ CC=gcc all: zerofree.c - $(CC) -o zerofree -lext2fs zerofree.c + $(CC) -o zerofree zerofree.c -lext2fs clean: /bin/rm -f *.o *~ zerofree debian/manpages0000664000000000000000000000001311766134412010705 0ustar zerofree.8 debian/install0000664000000000000000000000002211766134412010560 0ustar zerofree usr/sbin debian/zerofree.sgml0000664000000000000000000001414011766134412011702 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. --> Thibaut"> Paumard"> April 3rd, 2012"> 8"> <paumard@users.sourceforge.net>"> ZEROFREE"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; zero free blocks from ext2, ext3 and ext4 file-systems &dhpackage; filesystem DESCRIPTION &dhpackage; finds the unallocated, blocks with non-zero value content in an ext2, ext3 or ext4 filesystem (e.g. /dev/hda1) and fills them with zeroes (or another octet of your choice). Filling unused areas with zeroes is useful if the device on which this file-system resides is a disk image. In this case, depending on the type of disk image, a secondary utility may be able to reduce the size of the disk image after zerofree has been run. Filling unused areas may also be useful with solid-state drives (SSDs). On some SSDs, filling blocks with ones (0xFF) is reported to trigger Flash block erasure by the firmware, possibly giving a write performance increase. The usual way to achieve the same result (zeroing the unallocated blocks) is to run dd (1) to create a file full of zeroes that takes up the entire free space on the drive, and then delete this file. This has many disadvantages, which zerofree alleviates: it is slow; it makes the disk image (temporarily) grow to its maximal extent; it (temporarily) uses all free space on the disk, so other concurrent write actions may fail. filesystem has to be unmounted or mounted read-only for &dhpackage; to work. It will exit with an error message if the filesystem is mounted writable. To remount the root file-system readonly, you can first switch to single user runlevel (telinit 1) then use mount -o remount,ro filesystem. &dhpackage; has been written to be run from GNU/Linux systems installed as guest OSes inside a virtual machine. In this case, it is typically run from within the guest system, and a utility is then run from the host system to shrink disk image (VBoxManage modifyhd --compact, provided with virtualbox, is able to do that for some disk image formats). It may however be useful in other situations: for instance it can be used to make it more difficult to retrieve deleted data. Beware that securely deleting sensitive data is not in general an easy task and usually requires writing several times on the deleted blocks. OPTIONS Perform a dry run (do not modify the file-system); Be verbose; Specify the octet value to fill empty blocks with (defaults to 0). Argument must be within the range 0 to 255. SEE ALSO dd (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
debian/changelog0000664000000000000000000000452511767376507011073 0ustar zerofree (1.0.2-1ubuntu1) quantal; urgency=low * Merge from Debian unstable. Remaining changes: - debian/patches/01_fix-as-needed-linking.diff: Move -lext2fs to the end of the linker call. -- Bhavani Shankar Sun, 17 Jun 2012 21:19:37 +0530 zerofree (1.0.2-1) unstable; urgency=low * New upstream release (includes patch "fillval" from 1.0.1-4). * Bug fix: "zerofree (1.0.1-4) - please enable hardening flags", thanks to Dr. Markus Waldeck (Closes: #675905). * Add build-dep on w3c-dtd-xhtml to work around #676717 -- Thibaut Paumard Wed, 13 Jun 2012 10:30:46 +0200 zerofree (1.0.1-4ubuntu1) quantal; urgency=low * Merge from Debian Unstable (LP: #1009412). Remaining Changes: - debian/patches/01_fix-as-needed-linking.diff: Move -lext2fs to the end of the linker call. -- Vibhav Pant Thu, 07 Jun 2012 21:35:06 +0530 zerofree (1.0.1-4) unstable; urgency=low * mention that zerofree works on ext4 file-systes also in the short description -- Thibaut Paumard Tue, 03 Apr 2012 13:44:39 +0200 zerofree (1.0.1-3) unstable; urgency=low * Bug fix: clarify description and documentation, thanks to Ritesh Raj Sarraf (Closes: #542360), Christoph Anton Mitterer (Closes: #639301), Osamu Aoki (Closes: #562171). * Bug fix: "allow filling empty space with nonzero octets", thanks to Jacob Nevins (Closes: #600523). -- Thibaut Paumard Sun, 01 Apr 2012 22:43:32 +0200 zerofree (1.0.1-2ubuntu1) natty; urgency=low * debian/patches/01_fix-as-needed-linking.diff: Move -lext2fs to the end of the linker call. -- Michael Bienia Sun, 05 Dec 2010 13:45:55 +0100 zerofree (1.0.1-2) unstable; urgency=low * Bug fix: "Manpage refers to bogus command 'remount'", thanks to Ben Finney (Closes: #533606). * Bug fix: "Description does not contain the word 'unused'", thanks to Willi Mann (Closes: #504697). * Check against policy 3.8.3. * Set DM-Upload-Allowed field. * Convert to 3.0 (quilt) format. -- Thibaut Paumard Wed, 25 Nov 2009 17:51:44 +0100 zerofree (1.0.1-1) unstable; urgency=low * Initial release (Closes: #462091) -- Thibaut Paumard Fri, 8 Feb 2008 16:28:19 +0100 debian/source/0000775000000000000000000000000011766134412010475 5ustar debian/source/format0000664000000000000000000000001411766134412011703 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000253411766134412010261 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -include /usr/share/dpkg/buildflags.mk CC=gcc $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) build: build-indep build-arch build-indep build-arch: build-stamp build-stamp: zerofree.c debian/zerofree.sgml dh_testdir $(MAKE) CC="$(CC)" docbook-to-man debian/zerofree.sgml > zerofree.8 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp zerofree.8 $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_install dh_installman dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure