summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/fat.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-02-20 02:27:58 +0000
committerChris Johns <chrisj@rtems.org>2010-02-20 02:27:58 +0000
commit5268642f861149fc63b9cd1d8c661e0ffa2781fb (patch)
treef1b1947c64a3c9ea2a547c8334c9359bd83c1ca4 /cpukit/libfs/src/dosfs/fat.c
parent2010-02-19 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-5268642f861149fc63b9cd1d8c661e0ffa2781fb.tar.bz2
2010-02-20 Chris Johns <chrisj@rtems.org>
* libfs/src/dosfs/fat.c, libfs/src/rfs/rtems-rfs-buffer.c: Block devices are now block device nodes and not character device nodes.
Diffstat (limited to 'cpukit/libfs/src/dosfs/fat.c')
-rw-r--r--cpukit/libfs/src/dosfs/fat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libfs/src/dosfs/fat.c b/cpukit/libfs/src/dosfs/fat.c
index 123e86b324..ad1dd2afe0 100644
--- a/cpukit/libfs/src/dosfs/fat.c
+++ b/cpukit/libfs/src/dosfs/fat.c
@@ -367,14 +367,14 @@ fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
if (rc == -1)
return rc;
- /* rtmes feature: no block devices, all are character devices */
- if (!S_ISCHR(stat_buf.st_mode))
+ /* Must be a block device. */
+ if (!S_ISBLK(stat_buf.st_mode))
rtems_set_errno_and_return_minus_one(ENOTTY);
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
if (vol->dd == NULL)
- rtems_set_errno_and_return_minus_one(ENOTTY);
+ rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;