All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Brett Russ" <icycle@charter.net>
To: Reiserfs-List <reiserfs-list@namesys.com>
Subject: Behavior of tails with respect to shred, wipe, etc
Date: Fri, 25 Oct 2002 11:40:16 -0400	[thread overview]
Message-ID: <HDEFILEPHCPLCAGPLCEMIELIDFAA.icycle@charter.net> (raw)

Hi,

I have a few questions about the low level functionality of ReiserFS as it
pertains to overwriting a file in place from userland.  I am implementing
GNU shred on top of Reiser in metadata journaling only mode with tail
packing enabled.

To start off, I have several questions:

1) If I perform an exact file size shred (i.e. the file will not grow or
shrink as a result of the shred) of a file with a tail, can I be assured
that the write will occur over the existing data in all cases?
Specifically, will Reiser allocate a new block to store the overwritten
tail, thus abandoning the original data in the original block and defeating
the shred attempt?

2) If someone confirms that there is not a way to guarantee obliteration of
original data in all cases with tails, can I assume that disabling tails
will rectify the problem?

3) If I disable tail packing on mount (this is the only way, correct?) how
are previously tail packed blocks handled?  I can't imagine that ReiserFS
will go through all of them and unpack them--the performance hit of this
would be terrible no?  Does this only affect future writes?

4) What is the best way to determine and read the physical sectors that a
file is mapped to in order to verify obliteration?  I have used
debugreiserfs a bit (with the -d option) and get keys and locations of files
but the documentation is rather limited on what all of the output means and
how to use it.


Thanks for your help,
Brett


             reply	other threads:[~2002-10-25 15:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-25 15:40 Brett Russ [this message]
2002-10-25 15:55 ` Behavior of tails with respect to shred, wipe, etc Nikita Danilov
2002-10-25 16:00   ` Oleg Drokin
2002-10-25 16:09     ` Nikita Danilov
2002-10-26  7:06     ` Valdis.Kletnieks
2002-10-30  2:32     ` Tom Vier
2002-10-30  6:36       ` Oleg Drokin
2002-10-30  7:14         ` Tom Vier
2002-10-25 21:13   ` Brett Russ
2002-10-28 10:01     ` Nikita Danilov
2002-10-26  1:41   ` Hans Reiser
2002-10-26  7:09     ` Valdis.Kletnieks
2002-10-26 13:53       ` Hans Reiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HDEFILEPHCPLCAGPLCEMIELIDFAA.icycle@charter.net \
    --to=icycle@charter.net \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.