First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 95593
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Milan Holzäpfel <public@mjh.name>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95593 depends on: Show dependency tree
Show dependency graph
Bug 95593 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-09 11:47 0000
Hello,

the create_devs funtion in the /lib/rcscripts/addons/raid-script.sh function 
seems to be broken for device names like /dev/md/100. 
First, there is a full path like /dev/md100 or /dev/md/100. For the former case, 
everything is all right: The full path is tranformed to md100, and then the md 
is stripped out, leaving 100 for the minor device number. 
For /dev/md/100, however, the minor device numer is /100, resulting in an error 
because mknod gets a wrong parameter. 
A possible solution is insert
| d=${d/\/}
before
| mknod /dev/${d} b ${MAJOR} ${d##*md} >& /dev/null
.

Reproducible: Always
Steps to Reproduce:
1. Use a device name like /dev/md/100 (and not /dev/md100) in /etc/mdadm. 
2. The resp. device file needs to be missing
3. Use /lib/rcscripts/addons/raid-start.sh to start the devices 
Actual Results:  
Missing device files are not created. 

Expected Results:  
Missing device files should be created. 

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-
r1, 2.6.11.11-grsec-18 x86_64)
=================================================================
System uname: 2.6.11.11-grsec-18 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.4-r1,dev-lang/python-2.4.1 [2.4.1 (#1, 
Apr 28 2005, 20:44:47)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-Os -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/2/share/config /usr/kde/3.4/
env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /
usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/
texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/
platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control /var/
vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/src/pkg"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict 
userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.
uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo 
ftp://gentoo.inode.at/source http://gentoo.inode.at/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de en_GB"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/pkg"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X aalib acpi acpi4linux alsa apache2 audiofile avi bash-
completion bcmath bdf berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr crypt cups 
curl dga dlloader dvd dvdread encode exif fam ffmpeg flac font-server foomaticdb 
fortran freetds freetype fs ftp gd gdbm gif gimp gimpprint glut gmp gnutls 
gphoto2 gpm gstreamer gtk gtk2 gtkhtml iconv imagemagick imap imlib innodb ipv6 
jabber jack java jp2 jpeg kerberos ldap lesstif libcaca libwww lzo lzw lzw-tiff 
mad mailwrapper matroska mbox mcal memlimit mmap mng mp3 mysql ncurses nls 
nvidia ogg oggvorbis openal opengl pam perl php png ppds python qt readline sasl 
scanner sdl snmp speex spell sql ssl subversion svg tcltk tcpd tetex theora tidy 
tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vidix 
visualization vorbis vpopmail wmf xanim xine xinerama xml xml2 xmms xpm xrandr 
xsl xv xvid xvmc zlib linguas_de linguas_en_GB userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

------- Comment #1 From SpanKY 2005-06-09 19:09:38 0000 -------
updated code to handle arbitrary paths

First Last Prev Next    No search results available      Search page      Enter new bug