coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] shred: overwrite inode storage used by some file systems


From: Pádraig Brady
Subject: [PATCH] shred: overwrite inode storage used by some file systems
Date: Fri, 04 Apr 2014 17:05:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Paul reminded me that for small files, their storage might
be completely within an inode.  Now that would not be cleared
if one was writing a full block, which shred does by default.
Now that full block write to clear the slack space at the end
of a file is useful, especially is used in a consistent manner
to remove all files from a file system, so to cater for both
use cases you could write the small amount first, and then
pad out to the full block.

Now we shouldn't jump through any hoops to improve shredding
of regular files, since there are so many edge cases we can't
handle with journalling file systems etc., but in this case
the improvement is easy and so probably worth adding.

Proposed untested implementation attached.
Also noted therein is the possiblity for also handling:
http://en.wikipedia.org/wiki/Tail_packing

thanks,
Pádraig.

Attachment: shred-inode-data.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]