Changeset be815bc in mainline for uspace/srv/fs/fat/fat.c


Ignore:
Timestamp:
2007-11-25T19:42:39Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5af627fc
Parents:
d2e0a8cb
Message:

FAT work.
Start VFS_LOOKUP support in FAT.

File:
1 edited

Legend:

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

    rd2e0a8cb rbe815bc  
    3737 */
    3838
     39#include "fat.h"
    3940#include <ipc/ipc.h>
    4041#include <ipc/services.h>
     
    4647#include "../../vfs/vfs.h"
    4748
    48 #define dprintf(...)    printf(__VA_ARGS__)
    4949
    5050vfs_info_t fat_vfs_info = {
     
    8080 * There are few issues with this arrangement. First, VFS can run out of
    8181 * available phones. In that case, VFS can close some other phones or use one
    82  * phone for more serialized requests. Similarly, FAT can refuse to duplicate
     82 * phone for more serialized requests. Similarily, FAT can refuse to duplicate
    8383 * the connection. VFS should then just make use of already existing phones and
    8484 * route its requests through them. To avoid paying the fibril creation price
     
    104104                callid = async_get_call(&call);
    105105                switch  (IPC_GET_METHOD(call)) {
     106                case VFS_REGISTER:
     107                        ipc_answer_0(callid, EOK);
     108                        break;
     109                case VFS_LOOKUP:
     110                        fat_lookup(callid, &call);
     111                        break;
    106112                default:
    107113                        ipc_answer_0(callid, ENOTSUP);
     
    109115                }
    110116        }
     117}
     118
     119int block_read(int dev_handle, unsigned long blkno, void *buf)
     120{
    111121}
    112122
Note: See TracChangeset for help on using the changeset viewer.