Changeset 5268642 in rtems


Ignore:
Timestamp:
Feb 20, 2010, 2:27:58 AM (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
59762963
Parents:
cca94a2
Message:

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

  • libfs/src/dosfs/fat.c, libfs/src/rfs/rtems-rfs-buffer.c: Block devices are now block device nodes and not character device nodes.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rcca94a2 r5268642  
     12010-02-20      Chris Johns <chrisj@rtems.org>
     2
     3        * libfs/src/dosfs/fat.c, libfs/src/rfs/rtems-rfs-buffer.c: Block
     4        devices are now block device nodes and not character device
     5        nodes.
     6
    172010-02-19      Chris Johns <chrisj@rtems.org>
    28
  • cpukit/libfs/src/dosfs/fat.c

    rcca94a2 r5268642  
    368368        return rc;
    369369
    370     /* rtmes feature: no block devices, all are character devices */
    371     if (!S_ISCHR(stat_buf.st_mode))
     370    /* Must be a block device. */
     371    if (!S_ISBLK(stat_buf.st_mode))
    372372        rtems_set_errno_and_return_minus_one(ENOTTY);
    373373
     
    375375    vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
    376376    if (vol->dd == NULL)
    377         rtems_set_errno_and_return_minus_one(ENOTTY);
     377        rtems_set_errno_and_return_minus_one(EIO);
    378378
    379379    vol->dev = stat_buf.st_rdev;
  • cpukit/libfs/src/rfs/rtems-rfs-buffer.c

    rcca94a2 r5268642  
    296296   * Is the device a block device ?
    297297   */
    298   if (!S_ISCHR (st.st_mode))
     298  if (!S_ISBLK (st.st_mode))
    299299  {
    300300    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))
Note: See TracChangeset for help on using the changeset viewer.