Subject: Re: Zeroing unused FFS blocks
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Daniel Carosone <dan@geek.com.au>
List: port-xen
Date: 01/26/2008 08:09:17
--YQEH9CATo+4lan7A
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 25, 2008 at 01:08:19PM +0000, Steven M. Bellovin wrote:
> The easiest thing is to mount the file and copy /dev/zero to some
> filename.  When the disk fills up, delete the file...=20

What I do is rm the file as soon as it's created and dd is running;
that way, as soon as dd gets ENOSPC and quits, the file is removed and
the space is returned automatically.

--
Dan.

--YQEH9CATo+4lan7A
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFHmk/8EAVxvV4N66cRAmqnAJ0frrS+0CQeZxtWb2Cao3mgHZTJHQCg3ITz
uZPKgBwN4WkT6stiAOkwWTs=
=IctX
-----END PGP SIGNATURE-----

--YQEH9CATo+4lan7A--