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