Re: [Qemu-devel] Wipe patch

2006-08-02 Thread Andreas Bollhalder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Campbell wrote: > While I'm here does anyone know of a simple program, either dos or linux > based for wiping unused space on fat filesystems? The only ones I've > found so far have been windows based. For DOS and FAT16, I'm using Wipem. See htt

RE: [Qemu-devel] Wipe patch

2006-08-02 Thread ZIGLIO, Frediano, VF-IT
> > ZIGLIO, Frediano, VF-IT wrote: > > Hi, > > well, this is not a definitive patch but it works. The > aim is to be > > able to wipe the disk without allocating entire space. When > you wipe a > > disk the program fill disk with zero bytes so disk image increase to > > allocate all space. Thi

Re: [Qemu-devel] Wipe patch

2006-08-02 Thread Nigel Horne
andrzej zaborowski wrote: On 02/08/06, Brad Campbell <[EMAIL PROTECTED]> wrote: ZIGLIO, Frediano, VF-IT wrote: > Hi, > well, this is not a definitive patch but it works. The aim is to be > able to wipe the disk without allocating entire space. When you wipe a > disk the program fill disk with

Re: [Qemu-devel] Wipe patch

2006-08-01 Thread Brad Campbell
andrzej zaborowski wrote: I don't know if you mean just zeroing unused parts or reordering the data and stuff like defragmentation. If you mean the former, there's a universal method: dd if=/dev/zero of=xxx; rm xxx where xxx is a path to a new file on the filesystem, which must be mounted. It

Re: [Qemu-devel] Wipe patch

2006-08-01 Thread andrzej zaborowski
On 02/08/06, andrzej zaborowski <[EMAIL PROTECTED]> wrote: On 02/08/06, Brad Campbell <[EMAIL PROTECTED]> wrote: > ZIGLIO, Frediano, VF-IT wrote: > > Hi, > > well, this is not a definitive patch but it works. The aim is to be > > able to wipe the disk without allocating entire space. When you w

Re: [Qemu-devel] Wipe patch

2006-08-01 Thread andrzej zaborowski
On 02/08/06, Brad Campbell <[EMAIL PROTECTED]> wrote: ZIGLIO, Frediano, VF-IT wrote: > Hi, > well, this is not a definitive patch but it works. The aim is to be > able to wipe the disk without allocating entire space. When you wipe a > disk the program fill disk with zero bytes so disk image in

Re: [Qemu-devel] Wipe patch

2006-08-01 Thread Brad Campbell
ZIGLIO, Frediano, VF-IT wrote: Hi, well, this is not a definitive patch but it works. The aim is to be able to wipe the disk without allocating entire space. When you wipe a disk the program fill disk with zero bytes so disk image increase to allocate all space. This just patch detect null byte

Re: [Qemu-devel] Wipe patch

2006-07-26 Thread Brad Campbell
ZIGLIO, Frediano, VF-IT wrote: I use the patch to reduce image size. I use a RIP (repair is possible) ISO image to boot a small Linux system where I can issue ntfswipe (or any other wipe command). Than I can recompress image with qemu-img. Yes, I do similar at the moment. I just boot the win

RE: [Qemu-devel] Wipe patch

2006-07-26 Thread ZIGLIO, Frediano, VF-IT
> > Avi Kivity wrote: > > >> This _looks_ like it would severely impact cpu load during a write. > >> Have you done any testing to determine if this is likely > to impact a > >> normal usage scenario? > > > > Why would it? In most cases, the zero test would terminate quickly, > > without acce

Re: [Qemu-devel] Wipe patch

2006-07-26 Thread Brad Campbell
Avi Kivity wrote: This _looks_ like it would severely impact cpu load during a write. Have you done any testing to determine if this is likely to impact a normal usage scenario? Why would it? In most cases, the zero test would terminate quickly, without accessing the entire cluster. Good

Re: [Qemu-devel] Wipe patch

2006-07-26 Thread Avi Kivity
Brad Campbell wrote: ZIGLIO, Frediano, VF-IT wrote: Hi, well, this is not a definitive patch but it works. The aim is to be able to wipe the disk without allocating entire space. When you wipe a disk the program fill disk with zero bytes so disk image increase to allocate all space. This just

RE: [Qemu-devel] Wipe patch

2006-07-26 Thread ZIGLIO, Frediano, VF-IT
> > ZIGLIO, Frediano, VF-IT wrote: > > Hi, > > well, this is not a definitive patch but it works. The > aim is to be > > able to wipe the disk without allocating entire space. When > you wipe a > > disk the program fill disk with zero bytes so disk image increase to > > allocate all space. Thi

Re: [Qemu-devel] Wipe patch

2006-07-26 Thread Brad Campbell
ZIGLIO, Frediano, VF-IT wrote: Hi, well, this is not a definitive patch but it works. The aim is to be able to wipe the disk without allocating entire space. When you wipe a disk the program fill disk with zero bytes so disk image increase to allocate all space. This just patch detect null byte

[Qemu-devel] Wipe patch

2006-07-26 Thread ZIGLIO, Frediano, VF-IT
Hi, well, this is not a definitive patch but it works. The aim is to be able to wipe the disk without allocating entire space. When you wipe a disk the program fill disk with zero bytes so disk image increase to allocate all space. This just patch detect null byte writes and do not write all zero