Changeset 53da07e in rtems for cpukit/libblock


Ignore:
Timestamp:
May 14, 2012, 1:21:30 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
7666afc
Parents:
fed66f99
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/12 13:21:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/15/12 08:01:42)
Message:

Filesystem: PR1255: Move offset update to handlers

It is now the responsibility of the read() and write() handler to update
the offset field of the IO descriptor (rtems_libio_t). This change
makes it possible to protect the IO descriptor from concurrent access by
per file locks.

File:
1 edited

Legend:

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

    rfed66f99 r53da07e  
    7676
    7777  if (remaining >= 0) {
     78    iop->offset += count;
    7879    rv = (ssize_t) count;
    7980  } else {
     
    135136
    136137  if (remaining >= 0) {
     138    iop->offset += count;
    137139    rv = (ssize_t) count;
    138140  } else {
Note: See TracChangeset for help on using the changeset viewer.