[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <44D4FFF2.6040105@mauve.plus.com>
Date: Sat, 05 Aug 2006 21:30:42 +0100
From: Ian Stirling <ian.stirling@...ve.plus.com>
To: Arjan van de Ven <arjan@...radead.org>
CC: Avinash Ramanath <avinashr@...il.com>, kernelnewbies@...linux.org,
linux-kernel@...r.kernel.org
Subject: Re: Zeroing data blocks
Arjan van de Ven wrote:
> On Sat, 2006-08-05 at 10:13 -0700, Avinash Ramanath wrote:
>
>>Hi,
>>
>>I want to do this at the filesystem-level not in user-space.
>>I have a stackable-filesystem that runs as a layer on top of the
>>existing filesystem (with all the function pointers mapped to the
>>corresponding base filesystem function pointers, and other suitable
>>adjustments).
>>So yes I have access to the filesystem.
>>But the question is how can I access those particular data-blocks?
>
>
> I think you misunderstood: You need to do this in the filesystem layer
> that allocates and tracks the blocks. You really can't do it outside
> that...
On modern (>200 meg or so) disk drives, you can't do it at all without
drive-specific debug tools.
The problem is that the drive, if it detects a bad sector, may well
remap the track that the sector is on to a spare track. You then
simply cannot access the old track. The drive may or may not zero
it for you.
Any standard access will simply ignore the old copy of the track.
It may or may not be possible to retrieve/erase it with disk-drive
specific tools that the vendor won't give you anyway.
If you want to do this reliably - you need to encrypt the disk
(not with loopcrypt or dm-crypt in its current state) so you can
just throw it away.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists