Changeset 537611cc in mainline for uspace/srv/rd/rd.c


Ignore:
Timestamp:
2009-05-11T19:21:06Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e38d66b
Parents:
d4a172b
Message:

Create a second RD device called "spared".
This is for testing purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/rd/rd.c

    rd4a172b r537611cc  
    277277                return false;
    278278        }
     279
     280        /*
     281         * Create the second device.
     282         * We need at least two devices for the sake of testing of non-root
     283         * mounts. Of course it would be better to allow the second device
     284         * be created dynamically...
     285         */
     286        if (EOK != device_register(driver_phone, "spared", &dev_handle)) {
     287                ipc_hangup(driver_phone);
     288                printf(NAME ": Unable to register device\n");
     289                return false;
     290        }
    279291       
    280292        return true;
Note: See TracChangeset for help on using the changeset viewer.