Subversion Repositories HelenOS

Rev

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

Rev 4341 Rev 4345
Line 124... Line 124...
124
    }
124
    }
125
}
125
}
126
 
126
 
127
int main(int argc, char **argv)
127
int main(int argc, char **argv)
128
{
128
{
129
    int vfs_phone;
-
 
130
 
-
 
131
    printf(NAME ": HelenOS TMPFS file system server\n");
129
    printf(NAME ": HelenOS TMPFS file system server\n");
132
 
130
   
133
    vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
131
    int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
134
    while (vfs_phone < EOK) {
132
    if (vfs_phone < EOK) {
-
 
133
        printf(NAME ": Unable to connect to VFS\n");
135
        usleep(10000);
134
        return -1;
136
        vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
-
 
137
    }
135
    }
138
   
136
   
139
    int rc;
-
 
140
    rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info,
137
    int rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info,
141
        tmpfs_connection);
138
        tmpfs_connection);
142
    if (rc != EOK) {
139
    if (rc != EOK) {
143
        printf(NAME ": Failed to register file system (%d)\n", rc);
140
        printf(NAME ": Failed to register file system (%d)\n", rc);
144
        return rc;
141
        return rc;
145
    }
142
    }