Changeset 2f60a529 in mainline
- Timestamp:
- 2008-03-28T07:54:14Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e790e6
- Parents:
- e190a89b
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/vfs/vfs1.c
re190a89b r2f60a529 44 44 char *test_vfs1(bool quiet) 45 45 { 46 if (mount("tmpfs", "/", "nulldev0") != EOK) 47 return "mount() failed.\n"; 48 if (!quiet) 49 printf("mounted tmpfs on /.\n"); 46 int rc; 47 48 rc = mount("tmpfs", "/", "nulldev0"); 49 switch (rc) { 50 case EOK: 51 if (!quiet) 52 printf("mounted tmpfs on /\n"); 53 break; 54 case EBUSY: 55 if (!quiet) 56 printf("(INFO) something is already mounted on /\n"); 57 break; 58 default: 59 if (!quiet) 60 printf("(INFO) IPC returned errno %d\n", rc); 61 return "mount() failed."; 62 } 50 63 51 64 if (mkdir("/mydir", 0) != 0) -
uspace/srv/vfs/vfs_ops.c
re190a89b r2f60a529 189 189 /* We already have the root FS. */ 190 190 rwlock_write_lock(&namespace_rwlock); 191 if ((size == 1) && (buf[0] == '/')) { 192 /* Trying to mount root FS over root FS */ 193 rwlock_write_unlock(&namespace_rwlock); 194 futex_up(&rootfs_futex); 195 vfs_node_put(mr_node); 196 free(buf); 197 ipc_answer_0(rid, EBUSY); 198 return; 199 } 191 200 rc = vfs_lookup_internal(buf, L_DIRECTORY, &mp_res, NULL); 192 201 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.