Ticket #1757: pr1775-rfs-set-iop-size-in-open.diff

File pr1775-rfs-set-iop-size-in-open.diff, 714 bytes (added by Chris Johns, on Mar 7, 2011 at 10:55:28 PM)

Set iop->size on open

  • cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c

    RCS file: /usr1/CVS/rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c,v
    retrieving revision 1.9
    diff -p -u -u -r1.9 rtems-rfs-rtems-file.c
    rtems_rfs_rtems_file_open (rtems_libio_t 
    7070  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))
    7171    printf("rtems-rfs: file-open: handle:%p\n", file);
    7272 
     73  iop->size = rtems_rfs_file_size (file);
     74 
    7375  iop->pathinfo.node_access = file;
    7476 
    7577  rtems_rfs_rtems_unlock (fs);