Changeset cde485d in mainline for uspace/srv/fs/fat/fat.c
- Timestamp:
- 2008-06-06T20:23:02Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b7b6753
- Parents:
- f49b0ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.c
rf49b0ea rcde485d 56 56 [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_NULL, 57 57 [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_NULL, 58 [IPC_METHOD_TO_VFS_OP(VFS_MOUNTED)] = VFS_OP_DEFINED, 58 59 [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL, 59 60 } … … 98 99 callid = async_get_call(&call); 99 100 switch (IPC_GET_METHOD(call)) { 101 case VFS_MOUNTED: 102 fat_mounted(callid, &call); 103 break; 104 case VFS_MOUNT: 105 fat_mount(callid, &call); 106 break; 100 107 case VFS_LOOKUP: 101 108 fat_lookup(callid, &call); … … 111 118 { 112 119 int vfs_phone; 120 int rc; 113 121 114 122 printf("FAT: HelenOS FAT file system server.\n"); 123 124 rc = fat_idx_init(); 125 if (rc != EOK) 126 goto err; 115 127 116 128 vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0); … … 120 132 } 121 133 122 int rc;123 134 rc = fs_register(vfs_phone, &fat_reg, &fat_vfs_info, fat_connection); 124 135 if (rc != EOK) { 125 printf("Failed to register the FAT file system (%d)\n", rc);126 return rc;136 fat_idx_fini(); 137 goto err; 127 138 } 128 139 … … 133 144 /* not reached */ 134 145 return 0; 146 147 err: 148 printf("Failed to register the FAT file system (%d)\n", rc); 149 return rc; 135 150 } 136 151
Note:
See TracChangeset
for help on using the changeset viewer.