First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 84871
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux High-Performance Clustering Team <hp-cluster@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: joram agten <joramagten@hotmail.com>
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 84871 depends on: Show dependency tree
Show dependency graph
Bug 84871 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-03-11 09:21 0000
the create_devices part of the script in /etc/init.d is wrong
this is better
create_devices() {
        local RESOURCES RESOURCE DEVICE

        # create dev if needed
        RESOURCES=`$DRBDADM sh-resources`
        #RESOURCES=${RESOURCE%%\ *}

        for RESOURCE in $RESOURCES; do
                DEVICE=`$DRBDADM sh-dev $RESOURCE`
                if [ ! -b ${DEVICE} ]; then
                        mknod $DEVICE b 147 ${DEVICE/\/dev\/drbd\/}
                fi
        done
}

but the whole part is not needed any more (the module does this itself)
but checking it does no harm

Reproducible: Always
Steps to Reproduce:
1. install drbd 7.10 (tested on kernel 2.6.10-gentoo-r6)
2. load the module (now look at /dev/drbd/* indeed the blackdevices are already there)
3. now start drbd (/etc/init.d/drbd start)

Actual Results:  
mknod complains about wrong parameters
but the test if the devices exist is already wrong, it checks for a file (-f),
but should check for a block device (-b)

Expected Results:  
two options here
1. if checking for the devices --> check for block devices
2. not check for the devices

------- Comment #1 From joram agten 2005-03-11 09:25:13 0000 -------
also the major number is now assigned and 147
(can be checked in /usr/src/linux/Documentation/devices.txt)

------- Comment #2 From Christian Zoffoli 2005-03-13 05:35:26 0000 -------
it's necessary with udev.

Check and device creation fixed in cvs.

thanks

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