Changeset 6f9ef87a in mainline
- Timestamp:
- 2011-11-05T23:35:47Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4af2f36
- Parents:
- 6b8e5b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
r6b8e5b7 r6f9ef87a 73 73 }; 74 74 75 static voidvfs_mount_internal(ipc_callid_t rid, service_id_t service_id,75 static int vfs_mount_internal(ipc_callid_t rid, service_id_t service_id, 76 76 fs_handle_t fs_handle, char *mp, char *opts) 77 77 { … … 96 96 fibril_rwlock_write_unlock(&namespace_rwlock); 97 97 async_answer_0(rid, EBUSY); 98 return ;98 return EBUSY; 99 99 } 100 100 … … 104 104 fibril_rwlock_write_unlock(&namespace_rwlock); 105 105 async_answer_0(rid, rc); 106 return ;106 return rc; 107 107 } 108 108 … … 111 111 fibril_rwlock_write_unlock(&namespace_rwlock); 112 112 async_answer_0(rid, ENOMEM); 113 return ;113 return ENOMEM; 114 114 } 115 115 … … 140 140 fibril_rwlock_write_unlock(&namespace_rwlock); 141 141 async_answer_0(rid, rc); 142 return ;142 return rc; 143 143 } 144 144 async_wait_for(msg, &rc); … … 147 147 fibril_rwlock_write_unlock(&namespace_rwlock); 148 148 async_answer_0(rid, rc); 149 return ;149 return rc; 150 150 } 151 151 … … 171 171 fibril_rwlock_write_unlock(&namespace_rwlock); 172 172 async_answer_0(rid, rc); 173 return ;173 return rc; 174 174 } else { 175 175 /* … … 179 179 fibril_rwlock_write_unlock(&namespace_rwlock); 180 180 async_answer_0(rid, ENOENT); 181 return ;181 return ENOENT; 182 182 } 183 183 } … … 212 212 async_answer_0(rid, rc); 213 213 fibril_rwlock_write_unlock(&namespace_rwlock); 214 return ;214 return rc; 215 215 } 216 216 … … 227 227 fibril_rwlock_write_unlock(&namespace_rwlock); 228 228 async_answer_0(rid, rc); 229 return ;229 return rc; 230 230 } 231 231 … … 263 263 async_answer_0(rid, rc); 264 264 fibril_rwlock_write_unlock(&namespace_rwlock); 265 return rc; 265 266 } 266 267 … … 357 358 } 358 359 fibril_mutex_unlock(&fs_list_lock); 359 360 361 /* Do the mount */ 362 rc = vfs_mount_internal(rid, service_id, fs_handle, mp, opts); 363 if (rc != EOK) { 364 async_answer_0(callid, ENOTSUP); 365 async_answer_0(rid, ENOTSUP); 366 free(mp); 367 free(opts); 368 free(fs_name); 369 return; 370 } 371 360 372 /* Add the filesystem info to the list of mounted filesystems */ 361 373 mtab_ent_t *mtab_ent = malloc(sizeof(mtab_ent_t)); … … 381 393 mtab_size++; 382 394 fibril_mutex_unlock(&mtab_list_lock); 383 384 /* Do the mount */385 vfs_mount_internal(rid, service_id, fs_handle, mp, opts);386 395 387 396 free(mp);
Note:
See TracChangeset
for help on using the changeset viewer.