Subversion Repositories HelenOS

Rev

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

Rev 4302 Rev 4305
Line 153... Line 153...
153
    ipc_hangup(phone);
153
    ipc_hangup(phone);
154
    return retval;
154
    return retval;
155
}
155
}
156
 
156
 
157
int mount(const char *fs_name, const char *mp, const char *dev,
157
int mount(const char *fs_name, const char *mp, const char *dev,
158
    const unsigned int flags)
158
    const char *opts, const unsigned int flags)
159
{
159
{
160
    int res;
160
    int res;
161
    ipcarg_t rc;
161
    ipcarg_t rc;
162
    aid_t req;
162
    aid_t req;
163
    dev_handle_t dev_handle;
163
    dev_handle_t dev_handle;
Line 183... Line 183...
183
        futex_up(&vfs_phone_futex);
183
        futex_up(&vfs_phone_futex);
184
        free(mpa);
184
        free(mpa);
185
        return (int) rc;
185
        return (int) rc;
186
    }
186
    }
187
   
187
   
-
 
188
    rc = ipc_data_write_start(vfs_phone, (void *) opts, str_size(opts));
-
 
189
    if (rc != EOK) {
-
 
190
        async_wait_for(req, NULL);
-
 
191
        async_serialize_end();
-
 
192
        futex_up(&vfs_phone_futex);
-
 
193
        free(mpa);
-
 
194
        return (int) rc;
-
 
195
    }
-
 
196
 
188
    rc = ipc_data_write_start(vfs_phone, (void *) fs_name, str_size(fs_name));
197
    rc = ipc_data_write_start(vfs_phone, (void *) fs_name, str_size(fs_name));
189
    if (rc != EOK) {
198
    if (rc != EOK) {
190
        async_wait_for(req, NULL);
199
        async_wait_for(req, NULL);
191
        async_serialize_end();
200
        async_serialize_end();
192
        futex_up(&vfs_phone_futex);
201
        futex_up(&vfs_phone_futex);