ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] [git update] packages/startup: tags/0.9.8.17-alt2
Date: Tue, 4 Mar 2008 15:40:52 +0300
Message-ID: <20080304124052.GM30111@newmaster.mivlgu.local> (raw)
In-Reply-To: <20080304122437.GA10151@wo.int.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]

On Tue, Mar 04, 2008 at 03:24:37PM +0300, Dmitry V. Levin wrote:
> On Tue, Mar 04, 2008 at 04:29:20AM +0300, Alexey Borovskoy wrote:
> > Update of /people/alb/packages/startup.git
> [...]
> > commit 806db97e10b92c271dd9b6120697b7a9c9c4ec0b
> > Author: Alexey Borovskoy <alb@altlinux>
> > Date:   Tue Jan 8 13:55:20 2008 +1200
> > 
> >     Fix LVM startup when / on MD device.
> > 
> > Full diff since `0.9.8.17-alt1' follows:
> > diff --git a/startup/rc.d/rc.sysinit b/startup/rc.d/rc.sysinit
> > index c11f197..24fd217 100755
> > --- a/startup/rc.d/rc.sysinit
> > +++ b/startup/rc.d/rc.sysinit
> > @@ -263,12 +263,12 @@ fi
> >  
> >  # Load device-mapper, create its device file
> >  if [ -e /proc/devices -a -e /proc/misc ]; then
> > -	rm -f /dev/mapper/control
> >  	modprobe dm-mod >/dev/null 2>&1
> >  	if [ -z "$RUN_UDEV" ]; then
> >  		MAJOR="$(sed -ne 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)"
> >  		MINOR="$(sed -ne 's/^ *\([0-9]\+\) \+device-mapper$/\1/p' /proc/misc)"
> >  		if [ -n "$MAJOR" -a -n "$MINOR" ]; then
> > +	                rm -f /dev/mapper/control
> >  			mkdir -p -m755 /dev/mapper
> >  			action "Creating device-mapper character device ($MAJOR, $MINOR):" \
> >  				mknod --mode=600 /dev/mapper/control c "$MAJOR" "$MINOR"
> 
> Можно пояснить, что именно исправляет это изменение?

Если модуль dm-mod в этот момент уже был загружен (например, из
initrd), и при этом udevd был запущен из rc.sysinit (RUN_UDEV=1), в
результате выполнения этого кода файл устройства /dev/mapper/control
удалялся, что приводило к ошибкам при последующем запуске lvm.
Конечно, имеющаяся запись changelog никуда не годится - MD не имеет
никакого отношения к данной проблеме.

В новом варианте, правда, всё равно остаётся race - в случае
RUN_UDEV=1 файл устройства должен создавать udevd, но ожидание его
создания не производится.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-03-04 12:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 12:24 ` Dmitry V. Levin
2008-03-04 12:40   ` Sergey Vlasov [this message]
2008-03-04 14:38     ` Dmitry V. Levin
2008-03-04 15:49       ` Anton Farygin
2008-03-04 16:06         ` Led
2008-03-04 16:17           ` Sergey V Turchin
2008-03-04 16:34             ` Led
2008-03-04 17:28           ` Anton Farygin
2008-03-04 18:19           ` Mikhail Gusarov
2008-03-04 19:40             ` Led
2008-03-04 19:43               ` Mikhail Gusarov
2008-03-04 20:06                 ` Led
2008-03-04 20:20                   ` Mikhail Gusarov
2008-03-04 20:50                     ` Led
2008-03-04 20:53                       ` Mikhail Gusarov
2008-03-04 22:43         ` Dmitry V. Levin
2008-03-05  5:43           ` Anton Farygin
2008-03-05 12:28             ` Dmitry V. Levin
2008-03-05 12:46               ` Anton Farygin
2008-03-05 13:14                 ` Sergey Vlasov
2008-03-05 18:00                   ` Vitaly Ostanin
2008-03-05 19:01                   ` Dmitry V. Levin
2008-03-05 21:47                     ` Anton Farygin

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=20080304124052.GM30111@newmaster.mivlgu.local \
    --to=vsu@altlinux.ru \
    --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