Subversion Repositories HelenOS

Rev

Rev 3532 | Rev 3537 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3532 Rev 3533
Line 537... Line 537...
537
         * Our strategy for regular file reads is to read one block at
537
         * Our strategy for regular file reads is to read one block at
538
         * most and make use of the possibility to return less data than
538
         * most and make use of the possibility to return less data than
539
         * requested. This keeps the code very simple.
539
         * requested. This keeps the code very simple.
540
         */
540
         */
541
        if (pos >= nodep->size) {
541
        if (pos >= nodep->size) {
542
            bytes = 0;      /* reading beyond the EOF */
542
            /* reading beyond the EOF */
-
 
543
            bytes = 0;
543
            (void) ipc_data_read_finalize(callid, NULL, 0);
544
            (void) ipc_data_read_finalize(callid, NULL, 0);
544
        } else {
545
        } else {
545
            bytes = min(len, bps - pos % bps);
546
            bytes = min(len, bps - pos % bps);
546
            bytes = min(bytes, nodep->size - pos);
547
            bytes = min(bytes, nodep->size - pos);
547
            b = fat_block_get(bs, nodep, pos / bps);
548
            b = fat_block_get(bs, nodep, pos / bps);