Changeset 4dc6a32 in mainline for uspace/srv/fs/ext2fs/ext2fs.c


Ignore:
Timestamp:
2011-03-08T21:26:08Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b83e16ff
Parents:
163cf12
Message:

ext2fs server now (almost, as it is not synchronized yet) supports mounting and basic reading of directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext2fs/ext2fs.c

    r163cf12 r4dc6a32  
    7474 * request has been completed.
    7575 */
    76 static void ext2_connection(ipc_callid_t iid, ipc_call_t *icall)
     76static void ext2fs_connection(ipc_callid_t iid, ipc_call_t *icall)
    7777{
    7878        if (iid) {
     
    152152                return -1;
    153153        }
    154        
    155         rc = fs_register(vfs_phone, &ext2fs_reg, &ext2fs_vfs_info, ext2_connection);
     154
     155        rc = ext2fs_global_init();
     156        if (rc != EOK) {
     157                printf(NAME ": Failed global initialization\n");
     158                return 1;
     159        }       
     160               
     161        rc = fs_register(vfs_phone, &ext2fs_reg, &ext2fs_vfs_info, ext2fs_connection);
    156162       
    157163        printf(NAME ": Accepting connections\n");
Note: See TracChangeset for help on using the changeset viewer.