Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 51774cd in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2017-04-04T21:31:40Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
2166728
Parents:
59f388a
Message:

Reintroduce aoff64_t file sizes into VFS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    r59f388a r51774cd  
    226226       
    227227        unsigned last = *pfirst + *plen;
    228         *pfirst = IPC_GET_ARG3(answer);
     228        *pfirst = IPC_GET_ARG3(answer) & 0xffff;
    229229        *plen = last - *pfirst;
    230230       
     
    232232        result->triplet.service_id = (service_id_t) IPC_GET_ARG1(answer);
    233233        result->triplet.index = (fs_index_t) IPC_GET_ARG2(answer);
    234         result->size = (int64_t)(int32_t) IPC_GET_ARG4(answer);
    235         result->type = IPC_GET_ARG5(answer) ?
     234        result->size = MERGE_LOUP32(IPC_GET_ARG4(answer), IPC_GET_ARG5(answer));
     235        result->type = (IPC_GET_ARG3(answer) >> 16) ?
    236236            VFS_NODE_DIRECTORY : VFS_NODE_FILE;
    237237        return EOK;
Note: See TracChangeset for help on using the changeset viewer.