Changeset 1affcdf3 in mainline for uspace/srv/fs/minixfs/mfs.c
- Timestamp:
- 2011-06-10T19:33:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1878386
- Parents:
- 13ecdac9 (diff), 79a141a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs.c
r13ecdac9 r1affcdf3 41 41 42 42 #include <ipc/services.h> 43 #include < ipc/ns.h>43 #include <ns.h> 44 44 #include <async.h> 45 45 #include <errno.h> … … 47 47 #include <task.h> 48 48 #include <stdio.h> 49 #include <libfs.h> 49 50 #include "mfs.h" 50 51 … … 96 97 /*mfsdebug(NAME "method = %d\n", method);*/ 97 98 switch (method) { 98 case IPC_M_PHONE_HUNGUP:99 return;100 99 case VFS_OUT_MOUNTED: 101 100 mfs_mounted(callid, &call); … … 135 134 int main(int argc, char **argv) 136 135 { 137 int vfs_phone;138 136 int rc; 139 137 140 138 printf(NAME ": HelenOS Minix file system server\n"); 141 139 142 vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0); 140 async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE, 141 SERVICE_VFS, 0, 0); 143 142 144 if ( vfs_phone < EOK) {143 if (!vfs_sess) { 145 144 printf(NAME ": failed to connect to VFS\n"); 146 145 return -1; 147 146 } 148 147 149 rc = fs_register(vfs_ phone, &mfs_reg, &mfs_vfs_info, mfs_connection);148 rc = fs_register(vfs_sess, &mfs_reg, &mfs_vfs_info, mfs_connection); 150 149 if (rc != EOK) 151 150 goto err;
Note:
See TracChangeset
for help on using the changeset viewer.