projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
499597d
)
mke2fs: do not zero out first kilobyte. Closes 3247
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 11 Jan 2012 00:02:31 +0000
(
01:02
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 11 Jan 2012 00:02:31 +0000
(
01:02
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mkfs_ext2.c
patch
|
blob
|
history
diff --git
a/util-linux/mkfs_ext2.c
b/util-linux/mkfs_ext2.c
index f6ccc9c9ed5fd77cffa7c08613115305215e7b0a..6cbbe0e075fc053b29077bc250b18aea4c452e84 100644
(file)
--- a/
util-linux/mkfs_ext2.c
+++ b/
util-linux/mkfs_ext2.c
@@
-615,7
+615,11
@@
int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
// zero boot sectors
memset(buf, 0, blocksize);
- PUT(0, buf, 1024); // N.B. 1024 <= blocksize, so buf[0..1023] contains zeros
+ // Disabled: standard mke2fs doesn't do this, and
+ // on SPARC this destroys Sun disklabel.
+ // Users who need/want zeroing can easily do it with dd.
+ //PUT(0, buf, 1024); // N.B. 1024 <= blocksize, so buf[0..1023] contains zeros
+
// zero inode tables
for (i = 0; i < ngroups; ++i)
for (n = 0; n < inode_table_blocks; ++n)