From: Oleg Drokin <green@namesys.com>
To: Brett Russ <icycle@charter.net>
Cc: Valdis.Kletnieks@vt.edu, Nikita Danilov <Nikita@namesys.com>,
Reiserfs-List <reiserfs-list@namesys.com>
Subject: Re: % of filesystem using tails/tail unpacking (shred related)
Date: Tue, 29 Oct 2002 09:10:41 +0300 [thread overview]
Message-ID: <20021029091041.A5105@namesys.com> (raw)
In-Reply-To: <3DBDBC81.4040703@charter.net>
Hello!
On Mon, Oct 28, 2002 at 05:38:57PM -0500, Brett Russ wrote:
> a) shred will work reliably on all new files created on a filesystem
> mounted with tail packing disabled
Yes. Also in reiserfs case (2.4 kernel in current state) tail is packed
on close, if file created was bigger than 16K (with newe cod it is
switchable and can be also 4K), tail is never packed for such a file.
Actually the rule is more complex than that, see reiserfs_fs.h,
STORE_TAIL_IN_UNFM
> b) to deal with filesystems already tail packed, shredding knowledge
> would need to be added to the unpack ioctl BUT there is no way to
> determine where else the tails have lived on disk prior to any rebalancing.
True. If ever there were any tails at all.
Same stuff applies to a case where file was read into memory,
modified a little bit and then written back to disk, truncating or
removing original file first. On any fs. Lots of editors behave like this
and thus making shred not very effecrive.
> Which leads to:
> c) there is no reliable way to shred anything that has been tail packed.
True. But on reiserfs there certain kind of files (i.e. longer than 16K)
that are never packed.
Also with introduction of data journaling, in data journaling mode the data
removed still will be in journal for some time.
Bye,
Oleg
prev parent reply other threads:[~2002-10-29 6:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 21:46 % of filesystem using tails/tail unpacking (shred related) Brett Russ
2002-10-28 9:55 ` Nikita Danilov
2002-10-28 21:20 ` Valdis.Kletnieks
2002-10-28 22:38 ` Brett Russ
2002-10-29 6:10 ` Oleg Drokin [this message]
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=20021029091041.A5105@namesys.com \
--to=green@namesys.com \
--cc=Nikita@namesys.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=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.