Changeset 47a776f9 in mainline for uspace/srv/fs/fat/fat.c


Ignore:
Timestamp:
2007-09-19T18:56:02Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2d0baf
Parents:
26f2af0
Message:

VFS work.

The VFS_REGISTER is now fully implemented by both vfs and fat servers. Thanks to
the debugging dprintf()'s, I was able to fix little errors here and there to
make them actually work.

Modified vfs and fat service makefiles so that the two are not built as drivers
and can therefore print to standard output. Added many debugging dprintf()'s.

Change the amd64 boot configuration to load vfs and fat.

File:
1 edited

Legend:

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

    r26f2af0 r47a776f9  
    4242#include <errno.h>
    4343#include <unistd.h>
     44#include <stdio.h>>
    4445#include "../../vfs/vfs.h"
     46
     47#define dprintf(...)    printf(__VA_ARGS__)
    4548
    4649vfs_info_t fat_vfs_info = {
     
    6568void fat_connection(ipc_callid_t iid, ipc_call_t *icall)
    6669{
     70        dprintf("Callback connection established.\n");
    6771        while (1) {
    6872                ipc_callid_t callid;
     
    7680int main(int argc, char **argv)
    7781{
    78         ipcarg_t vfs_phone;
     82        int vfs_phone;
     83
     84        printf("FAT: HelenOS FAT file system server.\n");
    7985
    8086        vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0);
    81         while (vfs_phone != EOK) {
     87        while (vfs_phone < EOK) {
    8288                usleep(10000);
    8389                vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0);
     
    108114
    109115        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();
    110123        return 0;
    111124}
Note: See TracChangeset for help on using the changeset viewer.