Changeset 30d4124 in rtems for cpukit/libblock


Ignore:
Timestamp:
May 7, 2012, 2:30:37 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d61b0a5
Parents:
eb7c6a84
git-author:
Sebastian Huber <sebastian.huber@…> (05/07/12 14:30:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/11/12 11:58:43)
Message:

Filesystem: PR1398: Fix lseek() mechanic

According to POSIX the lseek() function shall not, by itself, extend the
size of a file.

Remove the size field of rtems_libio_t. A file has only one size but
may have multiple open file descriptors. Thus a file size field in the
file descriptor may lead to inconsistencies.

New default handlers rtems_filesystem_default_lseek_file() and
rtems_filesystem_default_lseek_directory().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/blkdev-imfs.c

    reb7c6a84 r30d4124  
    207207  .write_h = rtems_blkdev_imfs_write,
    208208  .ioctl_h = rtems_blkdev_imfs_ioctl,
    209   .lseek_h = rtems_filesystem_default_lseek_success,
     209  .lseek_h = rtems_filesystem_default_lseek_file,
    210210  .fstat_h = rtems_blkdev_imfs_fstat,
    211211  .ftruncate_h = rtems_filesystem_default_ftruncate,
Note: See TracChangeset for help on using the changeset viewer.