diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-28 17:19:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:24:18 +0100 |
commit | 796967c3df40a51a9028bc83d1a4b6dbeae07c3f (patch) | |
tree | edd7251883f74506a69f76e6e9fbf173de195f50 /cpukit/libfs/src/dosfs/fat.h | |
parent | libblock: Documentation (diff) | |
download | rtems-796967c3df40a51a9028bc83d1a4b6dbeae07c3f.tar.bz2 |
libblock: Change bdbuf API
The functions
o rtems_bdbuf_get(),
o rtems_bdbuf_read(),
o rtems_bdbuf_syncdev(), and
o rtems_bdbuf_purge_dev(),
use now the disk device instead of the device identifier. This makes
bdbuf independent of rtems_disk_obtain() and rtems_disk_release(). It
is the responsiblity of the file system to obtain the disk device. This
also reduces the overhead to get a buffer.
The key for the AVL tree uses now the disk device instead of the device
identifier. The pointer is interpreted as an unsigned integer. This
reduces the memory overhead and makes the comparison operation a bit
faster.
Removed function rtems_bdbuf_purge_major(). This function was too
destructive and could have unpredictable side effects.
Diffstat (limited to 'cpukit/libfs/src/dosfs/fat.h')
-rw-r--r-- | cpukit/libfs/src/dosfs/fat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/dosfs/fat.h b/cpukit/libfs/src/dosfs/fat.h index 8d62662c10..204095cae2 100644 --- a/cpukit/libfs/src/dosfs/fat.h +++ b/cpukit/libfs/src/dosfs/fat.h @@ -319,7 +319,7 @@ typedef struct fat_vol_s uint8_t mirror; /* mirroring enabla/disable */ uint32_t afat_loc; /* active FAT location */ uint8_t afat; /* the number of active FAT */ - dev_t dev; /* device ID */ + int fd; /* the disk device file descriptor */ rtems_disk_device *dd; /* disk device (see libblock) */ void *private_data; /* reserved */ } fat_vol_t; |