[PATCH] e2fsck size reduction proposal

Tito farmatito at tiscali.it
Wed Oct 12 14:46:12 UTC 2005


Hi,
this is a set of patches to reduce the size of e2fsck.

01_applets_usage_exit_code.patch :
is trivial and should be applied as it could be useful in the future.

02_e2fsck_stuff.patch:
a) reduces size of e2fsck.c
b) respects e2fsck special exit codes as discussed on the list
c) moves some common code to util.c

03_mke2fs.patch:
should be applied only if 02 is applied.

The e2fsck stuff is a tested on floppy with all sorts of errors and seems
to work, but more testing would be good.
The main difference vs the original is that in interactive mode
you have to  type y/enter  as typing only enter is equal to no.

Size reduction is:
 text    data     bss     dec     hex filename
 82768     160     576   83504   14630 e2fsprogs/e2fsck.o.new
 84847     160     576   85583    14e4f e2fsprogs/e2fsck.o.orig

  text    data     bss     dec     hex filename
   9919       16    1104   11039    2b1f e2fsprogs/mke2fs.o.new
 10036      16    1104   11156    2b94 e2fsprogs/mke2fs.o.orig

  text    data     bss     dec     hex filename
  2051       0       0    2051     803 e2fsprogs/util.o.new
  1915       0       0    1915     77b e2fsprogs/util.o.orig

   text    data     bss     dec     hex filename
   1655       0       4    1659     67b applets/applets.o.new
   1651       0       4    1655     677 applets/applets.o.orig

Overall:
  text    data     bss     dec     hex filename
 178698    3024    2840  184562   2d0f2  busybox.new
 180548    3020    2808  186376   2d808 busybox.orig

Thanks in advance for testing, comments and critics.

Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_applets_usage_exit_code.patch
Type: text/x-diff
Size: 367 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051012/c273c4b7/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_mke2fs.patch
Type: text/x-diff
Size: 938 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051012/c273c4b7/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_e2fsck_stuff.patch.bz2
Type: application/x-bzip2
Size: 10922 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051012/c273c4b7/attachment-0002.bin 


More information about the busybox mailing list