Changeset 6b8e5b7 in mainline


Ignore:
Timestamp:
2011-11-05T23:08:52Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6f9ef87a
Parents:
7e8403b
Message:

vfs_get_mtab(): service_id is more useful than flags and fs_handle

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    r7e8403b r6b8e5b7  
    8484                        printf("opts=%s ", mtab_ent->opts);
    8585
    86                 printf("(instance=%d, flags=%d, fs_handle=%d)\n",
    87                     mtab_ent->instance, mtab_ent->flags, mtab_ent->fs_handle);
     86                printf("(instance=%d, service_id=%" PRIu64 ")\n",
     87                    mtab_ent->instance, mtab_ent->service_id);
    8888        }
    8989
  • uspace/lib/c/generic/vfs/vfs.c

    r7e8403b r6b8e5b7  
    873873                        goto exit;
    874874
    875                 sysarg_t p[3];
    876 
    877                 rc = async_req_0_3(exch, VFS_IN_PING, &p[0], &p[1], &p[2]);
     875                sysarg_t p[2];
     876
     877                rc = async_req_0_2(exch, VFS_IN_PING, &p[0], &p[1]);
    878878                if (rc != EOK)
    879879                        goto exit;
    880880
    881                 mtab_ent->flags = p[0];
    882                 mtab_ent->instance = p[1];
    883                 mtab_ent->fs_handle = p[2];
     881                mtab_ent->instance = p[0];
     882                mtab_ent->service_id = p[1];
    884883
    885884                link_initialize(&mtab_ent->link);
  • uspace/lib/c/include/vfs/vfs_mtab.h

    r7e8403b r6b8e5b7  
    4545        char opts[MAX_MNTOPTS_LEN];
    4646        char fs_name[FS_NAME_MAXLEN];
    47         unsigned int flags;
    4847        unsigned int instance;
    49         fs_handle_t  fs_handle;
     48        service_id_t service_id;
    5049} mtab_ent_t;
    5150
  • uspace/srv/vfs/vfs_ops.c

    r7e8403b r6b8e5b7  
    369369        }
    370370
    371         mtab_ent->fs_handle = fs_handle;
    372371        str_cpy(mtab_ent->mp, MAX_PATH_LEN, mp);
    373372        str_cpy(mtab_ent->fs_name, FS_NAME_MAXLEN, fs_name);
    374373        str_cpy(mtab_ent->opts, MAX_MNTOPTS_LEN, opts);
    375         mtab_ent->flags = flags;
    376374        mtab_ent->instance = instance;
     375        mtab_ent->service_id = service_id;
    377376
    378377        link_initialize(&mtab_ent->link);
     
    13931392
    13941393                rc = EOK;
    1395                 async_answer_3(callid, rc, mtab_ent->flags, mtab_ent->instance,
    1396                     mtab_ent->fs_handle);
     1394                async_answer_2(callid, rc, mtab_ent->instance,
     1395                    mtab_ent->service_id);
    13971396        }
    13981397
Note: See TracChangeset for help on using the changeset viewer.