Changeset 47a776f9 in mainline for uspace/srv/fs/fat/fat.c
- Timestamp:
- 2007-09-19T18:56:02Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2d0baf
- Parents:
- 26f2af0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.c
r26f2af0 r47a776f9 42 42 #include <errno.h> 43 43 #include <unistd.h> 44 #include <stdio.h>> 44 45 #include "../../vfs/vfs.h" 46 47 #define dprintf(...) printf(__VA_ARGS__) 45 48 46 49 vfs_info_t fat_vfs_info = { … … 65 68 void fat_connection(ipc_callid_t iid, ipc_call_t *icall) 66 69 { 70 dprintf("Callback connection established.\n"); 67 71 while (1) { 68 72 ipc_callid_t callid; … … 76 80 int main(int argc, char **argv) 77 81 { 78 ipcarg_t vfs_phone; 82 int vfs_phone; 83 84 printf("FAT: HelenOS FAT file system server.\n"); 79 85 80 86 vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0); 81 while (vfs_phone !=EOK) {87 while (vfs_phone < EOK) { 82 88 usleep(10000); 83 89 vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0); … … 108 114 109 115 async_new_connection(phonehash, 0, NULL, fat_connection); 116 117 /* 118 * Pick up the answer for the request to the VFS_REQUEST call. 119 */ 120 async_wait_for(req, NULL); 121 dprintf("FAT filesystem registered.\n"); 122 async_manager(); 110 123 return 0; 111 124 }
Note:
See TracChangeset
for help on using the changeset viewer.