Displaying 2 results from an estimated 2 matches for "zero_blocks".
2012 Oct 24
2
[BUG][BTRFS-PROGS] Fix Bug to corrupt the img file
...file''s size goes larger to 2Mbytes.
Signed-off-by: Rock Lee <zimilo@code-trick.com>
---
utils.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/utils.c b/utils.c
index 205e667..3c88d2e 100644
--- a/utils.c
+++ b/utils.c
@@ -441,7 +441,7 @@ static int zero_blocks(int fd, off_t start, size_t len)
return ret;
}
-static int zero_dev_start(int fd)
+static int zero_dev_start(int fd, u64 dev_size)
{
off_t start = 0;
size_t len = 2 * 1024 * 1024;
@@ -451,6 +451,10 @@ static int zero_dev_start(int fd)
start = 1024;
len -=...
2006 Apr 02
1
Zeroing freed blocks
A couple of years ago there was a discussion on lkml under the thread
'PATCH - ext2fs privacy (i.e. secure deletion) patch' about zapping
deleted data in the filesystem as a security mechanism. The discussion
wandered off into how 'chattr +s' could be implemented and whether
encrypting filesystems wouldn't be a better solution to the problem.
I've been maintaining a