Changeset c9957b6 in mainline for uspace/app/tester/vfs/vfs1.c


Ignore:
Timestamp:
2007-12-22T20:13:59Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4eb8a60
Parents:
6344851
Message:

VFS work.
Cleaner VFS_MOUNT protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/vfs/vfs1.c

    r6344851 rc9957b6  
    3838#define TMPFS_DEVHANDLE 999
    3939
    40 char buf[FS_NAME_MAXLEN + 1] = "tmpfs";
     40char fs_name[] = "tmpfs";
     41char mp[] = "/";
    4142
    4243char *test_vfs1(bool quiet)
     
    5354        aid_t req;
    5455        req = async_send_1(vfs_phone, VFS_MOUNT, TMPFS_DEVHANDLE, NULL);
    55         buf[sizeof(buf) - 1] = '/';
    56         if (ipc_data_send(vfs_phone, buf, sizeof(buf)) != EOK) {
     56        if (ipc_data_send(vfs_phone, fs_name, strlen(fs_name)) != EOK) {
    5757                async_wait_for(req, &rc);
    58                 return "Could not send data to VFS.\n";
     58                return "Could not send fs_name to VFS.\n";
     59        }
     60        if (ipc_data_send(vfs_phone, mp, strlen(mp)) != EOK) {
     61                async_wait_for(req, &rc);
     62                return "Could not send mp to VFS.\n";
    5963        }
    6064        async_wait_for(req, &rc);
Note: See TracChangeset for help on using the changeset viewer.