Subversion Repositories HelenOS

Rev

Rev 4342 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4342 Rev 4345
Line 126... Line 126...
126
 
126
 
127
    rc = fat_idx_init();
127
    rc = fat_idx_init();
128
    if (rc != EOK)
128
    if (rc != EOK)
129
        goto err;
129
        goto err;
130
 
130
 
131
    vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
131
    vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
132
    while (vfs_phone < EOK) {
132
    if (vfs_phone < EOK) {
-
 
133
        printf("fat: failed to connect to VFS\n");
133
        usleep(10000);
134
        return -1;
134
        vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
-
 
135
    }
135
    }
136
   
136
   
137
    rc = fs_register(vfs_phone, &fat_reg, &fat_vfs_info, fat_connection);
137
    rc = fs_register(vfs_phone, &fat_reg, &fat_vfs_info, fat_connection);
138
    if (rc != EOK) {
138
    if (rc != EOK) {
139
        fat_idx_fini();
139
        fat_idx_fini();