Changeset 4f30222 in mainline for uspace/lib


Ignore:
Timestamp:
2017-05-16T21:58:20Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ec2acc
Parents:
dde4689
Message:

VFS_OUT_MOUNTED does not need to return the link count

Location:
uspace/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/ops.c

    rdde4689 r4f30222  
    920920 * @param index      Output value - index of root node
    921921 * @param size       Output value - size of root node
    922  * @param lnkcnt     Output value - link count of root node
    923922 *
    924923 * @return Error code
     
    926925 */
    927926static int ext4_mounted(service_id_t service_id, const char *opts,
    928     fs_index_t *index, aoff64_t *size, unsigned *lnkcnt)
     927    fs_index_t *index, aoff64_t *size)
    929928{
    930929        ext4_filesystem_t *fs;
     
    962961        *index = EXT4_INODE_ROOT_INDEX;
    963962        *size = rnsize;
    964         *lnkcnt = 1;
    965963       
    966964        return EOK;
  • uspace/lib/fs/libfs.c

    rdde4689 r4f30222  
    123123        fs_index_t index;
    124124        aoff64_t size;
    125         unsigned lnkcnt;
    126         rc = vfs_out_ops->mounted(service_id, opts, &index, &size, &lnkcnt);
     125        rc = vfs_out_ops->mounted(service_id, opts, &index, &size);
    127126
    128127        if (rc == EOK)
    129                 async_answer_4(rid, EOK, index, LOWER32(size), UPPER32(size),
    130                     lnkcnt);
     128                async_answer_3(rid, EOK, index, LOWER32(size), UPPER32(size));
    131129        else
    132130                async_answer_0(rid, rc);
  • uspace/lib/fs/libfs.h

    rdde4689 r4f30222  
    4444typedef struct {
    4545        int (* fsprobe)(service_id_t, vfs_fs_probe_info_t *);
    46         int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *,
    47             unsigned *);
     46        int (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *);
    4847        int (* unmounted)(service_id_t);
    4948        int (* read)(service_id_t, fs_index_t, aoff64_t, size_t *);
Note: See TracChangeset for help on using the changeset viewer.