[PATCH] ash: add support for history buffer
Denys Vlasenko
vda.linux at googlemail.com
Wed Jul 13 05:28:37 UTC 2011
On Tuesday 12 July 2011 20:14, Laurent Bercot wrote:
> > BusyBox writes to .ash_history after each and every command, which we don't
> > want on e.g. mobile devices with a flash-based storage device.
> > Using a buffer helps reducing the amount of erase/write cycles on the
> > storage medium
>
> Wouldn't mobile devices with flash-based storage be better off using an
> adapted filesystem layer, such as UBI ? Patching every application to
> avoid writing to the filesystem does not sound like the right way to
> handle this.
Yes, I think the approach this patch takes is not sustainable.
History is a small file. If your flash fs and hardware can't cope
even with periodic updates of a small file, then how it copes with
other real-world cases?
BTW, what about solving it with
"ln -s /tmp/.ash_history-$USERNAME ~/.ash_history" ?
--
vda
More information about the busybox
mailing list