[OE-core] [PATCH 01/20] udev-cache: Compress the cache
Khem Raj
raj.khem at gmail.com
Tue Aug 5 00:06:49 UTC 2014
On Aug 4, 2014 4:45 PM, "Ben Shelton" <ben.shelton at ni.com> wrote:
>
> On 08/04, Khem Raj wrote:
> > On 14-08-04 13:40:53, Ben Shelton wrote:
> > > From: Richard Tollerton <rich.tollerton at ni.com>
> > >
> > > $DEVCACHE is observed to be 100k uncompressed; compressing it reduces
> > > its size to ~5k.
> > >
> > > Natinst-Rally-ID: TA44427
> > > Acked-by: Gratian Crisan <gratian.crisan at ni.com>
> > > Natinst-ReviewBoard-ID: 58620
> > > Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
> > > ---
> > > meta/recipes-core/udev/udev/init | 2 +-
> > > meta/recipes-core/udev/udev/udev-cache | 2 +-
> > > meta/recipes-core/udev/udev/udev-cache.default | 2 +-
> > > 3 files changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/meta/recipes-core/udev/udev/init
b/meta/recipes-core/udev/udev/init
> > > index f2c84d5..1e69861 100644
> > > --- a/meta/recipes-core/udev/udev/init
> > > +++ b/meta/recipes-core/udev/udev/init
> > > @@ -69,7 +69,7 @@ case "$1" in
> > > readfiles /etc/udev/cache.data
> > > OLDDATA="$READDATA"
> > > if [ "$OLDDATA" = "$NEWDATA" ]; then
> > > - (cd /; tar xf $DEVCACHE > /dev/null 2>&1)
> > > + (cd /; tar xzf $DEVCACHE > /dev/null
2>&1)
> >
> > wouldnt cf still handle gz and xz or any other compression ?
>
> Do you mean xf? If so, then yes, I think it would.
>
> What would be the advantage of doing it that way? Just one fewer
> change?
yes and tomorrow you might want to use different compression this wont
change
>
> Thanks,
> Ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140804/39ed7836/attachment-0002.html>
More information about the Openembedded-core
mailing list