Messages in this thread |  | | Date | Tue, 12 Feb 2002 12:25:01 -0800 | From | Andrew Morton <> | Subject | Re: secure erasure of files? |
| |
Jan Hudec wrote: > > > I don't know if any filesystem currently relocates blocks if you > > overwrite a file, but it's certainly possible and allowed (everything > > else except the filesystem itself simply must not care where the data > > actually ends up on the disk). > > AFAIK, ext2 tries to defragment files when possible.
We wish.
> Thus if the file was > fragmented and the blocks after some fragment are free, it will use these > instead of the original ones somewhere far apart.
Nope - if you're overwriting a part of the file which already has allocated blocks, ext2/3 will use the same blocks.
Of course, the disk itself may decide to go and remap the block if it decides that part of the media is getting tired.
- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |