[patch] Supporting SCSI in eject

Nico Erfurth masta at perlgolf.de
Thu Feb 7 14:59:13 UTC 2008


Nico Erfurth schrieb:
> Hi,
> 
> for our project we need the ability to cleanly eject an usb-storage
> device(better don't ask why ;)). If added support for this in the eject
> applet. Patch is attached. The code is taken from the original eject,
> but I refactored it a bit.
> 
> The feature can be enabled via the config (FEATURE_EJECT_SCSI).
> 
> Nico
> 

Forgot to mention it, with FEATURE_EJECT_SCSI bloatcheck is +-0, when
enabled:

make bloatcheck
...

function                                             old     new   delta
eject_main                                           135     369    +234
.rodata                                              941    1014     +73
static.C                                               -      18     +18
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 325/0)             Total: 325
bytes
   text    data     bss     dec     hex filename
   6679     365      60    7104    1bc0 busybox_old
   7010     369      60    7439    1d0f busybox_unstripped

Nico



More information about the busybox mailing list