ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] gzip --rsyncable
Date: Sun, 25 May 2008 11:09:16 +0300
Message-ID: <200805251109.16258.ledest@gmail.com> (raw)
In-Reply-To: <20080525075404.GD7996@solemn.turbinal>

Sunday, 25 May 2008 10:54:04 Alexey Tourbin написав:
> On Sat, May 24, 2008 at 07:53:55PM +0400, Alexander Bokovoy wrote:
> > >> 2. Насколько этот режим совместим с rsync? Сам по себе LZMA не очень
> > >> приспособлен к генерации блочных структур.
> > >
> > > Не знаю.  В текущем виде gzdio тоже создаёт payload, который rsync
> > > "не берёт".  К тому же rsync синхронизирует только файлы с одинаковыми
> > > названиями (точнее, у rsync есть опция -y, но я не уверен, что она
> > > всегда хорошо работает).
> >
> > Дело в том, что gzip имеет код, который позволяет создавать архивы,
> > построенные на фиксированных блоках (опция --rsyncable в утилите
> > gzip), наверняка такую же настройку можно активировать и в библиотеке.
> > С этими фиксированными блоками rsync очень хорошо справляется.
>
> А будет ли 'gzip --rsyncable' что-то давать для rpm пакетов?
>
> Я локально пересобрал gzip с патчем
> http://www.samba.org/netfilter/diary/gzip.rsync.patch
>
> Проведём эксперимент: нужно синхронизировать предыдущую сборку
> glibc-core (которая есть у меня на локальной машине) с текущей
> (на удалённой машине с сизифом).
>
> На удалённой машине выполняю действие:
> $ rpm2cpio /ALT/Sisyphus/files/x86_64/RPMS/glibc-core-2.5.1-alt5.x86_64.rpm
> |./gzip -9nf --rsyncable >cpio-alt5.gz $ du -bk cpio-alt5.gz
> 1455    cpio-alt5.gz
> $
>
> На локальной машине выполняю действие:
> $ rpm2cpio /ALT/Sisyphus/files/x86_64/RPMS/glibc-core-2.5.1-alt4.x86_64.rpm
> |./gzip -9nf --rsyncable >cpio-alt4.gz $ du -bk cpio-alt4.gz
> 1455    cpio-alt4.gz
> $
>
> Теперь в порядке эксперимента нужно просинхронизировать cpio-alt5.gz
> с удалённой машины в cpio-alt4.gz на локальной машине.
>
> На локальной машине выполняется действие:
> $ rsync -va armor:cpio-alt5.gz cpio-alt4.gz
> receiving incremental file list
> cpio-alt5.gz
>
> sent 7380 bytes  received 1483907 bytes  28957.03 bytes/sec
> total size is 1489685  speedup is 1.00
> $
>
> Ничего не получилось, я полностью скачал rsyncable сpio.gz.
> Что я сделал не так?  Изменения glibc-core между 2.5.1-alt4
> и 2.5.1-alt5 только в spec-файле.

А если явно указать
rsync --block-size=100k ...
?

-- 
Led

  parent reply	other threads:[~2008-05-25  8:09 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-24 14:21 [devel] rpm: LZMA payload compression Alexey Tourbin
2008-05-24 14:20 ` Andrey Rahmatullin
2008-05-24 14:32   ` Alexey Tourbin
2008-05-25  0:01     ` Dmitry V. Levin
2008-05-24 14:51 ` Alexander Bokovoy
2008-05-24 15:35   ` Alexey Tourbin
2008-05-24 15:45     ` Alexey Tourbin
2008-05-24 15:53     ` Alexander Bokovoy
2008-05-24 15:58       ` Andrey Rahmatullin
2008-05-24 16:09         ` Alexander Bokovoy
2008-05-24 16:02       ` Alexander Bokovoy
2008-05-24 16:37       ` Alexey Tourbin
2008-05-24 17:55         ` Alexander Bokovoy
2008-05-24 19:16           ` Alexey Tourbin
2008-05-25  6:55           ` [devel] [JT] " Alexey Tourbin
2008-05-25  7:10             ` Alexander Bokovoy
2008-05-25  7:24               ` Alexey Tourbin
2008-05-25  7:27                 ` Alexander Bokovoy
2008-05-25  0:11         ` [devel] rsync mirrors Dmitry V. Levin
2008-05-25  6:03           ` Alexey Tourbin
2008-05-25  7:54       ` [devel] gzip --rsyncable Alexey Tourbin
2008-05-25  8:08         ` Alexander Bokovoy
2008-05-25  8:18           ` Alexey Tourbin
2008-05-25  8:31             ` Alexander Bokovoy
2008-05-25  8:48               ` Alexander Bokovoy
2008-05-25 11:35               ` Alexey Tourbin
2008-05-25 18:30               ` [devel] rsync_roll Alexey Tourbin
2008-05-25 18:38                 ` Alexander Bokovoy
2008-05-25 20:11                 ` Alexander Myltsev
2008-05-26  7:15                   ` Alexey Tourbin
2008-05-26  8:38                     ` Alexey Tourbin
2008-05-25  8:09         ` Led [this message]
2008-05-25  8:27         ` [devel] gzip --rsyncable Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805251109.16258.ledest@gmail.com \
    --to=ledest@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git