Changes in / [d42976c:4cac2d69] in mainline
- Location:
- uspace/srv/fs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_idx.c
rd42976c r4cac2d69 164 164 assert((keys == 1) || (keys == 3)); 165 165 } 166 167 return 0;168 166 } 169 167 … … 221 219 assert((keys == 1) || (keys == 2)); 222 220 } 223 224 return 0;225 221 } 226 222 -
uspace/srv/fs/tmpfs/tmpfs_ops.c
rd42976c r4cac2d69 168 168 (nodep->index == key[NODES_KEY_INDEX])); 169 169 default: 170 assert((keys == 1) || (keys == 2)); 171 } 172 173 return 0; 170 abort(); 171 } 174 172 } 175 173 … … 441 439 { 442 440 dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request); 443 fs_node_t *rootfn;444 int rc;445 441 446 /* Accept the mount options .*/442 /* Accept the mount options */ 447 443 char *opts; 448 rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL); 444 int rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL); 445 449 446 if (rc != EOK) { 450 447 ipc_answer_0(rid, rc); 451 return;452 }453 454 /* Check if this device is not already mounted. */455 rc = tmpfs_root_get(&rootfn, dev_handle);456 if ((rc == EOK) && (rootfn)) {457 (void) tmpfs_node_put(rootfn);458 free(opts);459 ipc_answer_0(rid, EEXIST);460 448 return; 461 449 } … … 468 456 } 469 457 458 fs_node_t *rootfn; 470 459 rc = tmpfs_root_get(&rootfn, dev_handle); 471 460 assert(rc == EOK);
Note:
See TracChangeset
for help on using the changeset viewer.