Changeset cca94a2 in rtems for cpukit/libblock


Ignore:
Timestamp:
02/19/10 03:23:11 (14 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 5, master
Children:
5268642
Parents:
37c0822d
Message:

2010-02-19 Chris Johns <chrisj@…>

  • libblock/src/diskdevs.c: Create the devices as block devices.
  • libmisc/shell/main_debugrfs.c, libmisc/shell/main_mkrfs.c, libmisc/shell/main_mount_rfs.c: New.
  • libmisc/shell/main_msdosfmt.c: Change the command to mkdos and alias the old name.
  • libmisc/shell/shellconfig.h, libmisc/Makefile.am: Add RFS support.
  • libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-shell.h: Move the format command code into the shell file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/diskdevs.c

    r37c0822d rcca94a2  
    200200
    201201  if (name != NULL) {
    202     rtems_device_major_number major = 0;
    203     rtems_device_minor_number minor = 0;
    204 
    205     rtems_filesystem_split_dev_t(dev, major, minor);
    206 
    207     sc = rtems_io_register_name(name, major, minor);
    208     if (sc != RTEMS_SUCCESSFUL) {
     202    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
    209203      free(alloc_name);
    210204      free(dd);
    211 
    212205      return RTEMS_UNSATISFIED;
    213206    }
Note: See TracChangeset for help on using the changeset viewer.