Changeset fc2e71e in mainline
- Timestamp:
- 2010-01-31T20:53:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c16013b
- Parents:
- 1735f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
r1735f3e rfc2e71e 439 439 { 440 440 dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request); 441 fs_node_t *rootfn; 441 442 int rc; 442 443 … … 463 464 opts[size] = '\0'; 464 465 466 /* 467 * Check if this device is not already mounted. 468 */ 469 rc = tmpfs_root_get(&rootfn, dev_handle); 470 if ((rc == EOK) && (rootfn)) { 471 (void) tmpfs_node_put(&rootfn); 472 free(opts); 473 ipc_answer_0(rid, EEXIST); 474 return; 475 } 476 465 477 /* Initialize TMPFS instance. */ 466 478 if (!tmpfs_instance_init(dev_handle)) { … … 470 482 } 471 483 472 fs_node_t *rootfn;473 484 rc = tmpfs_root_get(&rootfn, dev_handle); 474 485 assert(rc == EOK);
Note:
See TracChangeset
for help on using the changeset viewer.