Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2542 → Rev 2543

/trunk/uspace/srv/fs/fat/fat.c
42,6 → 42,7
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <as.h>>
#include "../../vfs/vfs.h"
 
#define dprintf(...) printf(__VA_ARGS__)
62,6 → 63,8
}
};
 
uint8_t *plb_ro = NULL;
 
/**
* This connection fibril processes VFS requests from VFS.
*
141,6 → 144,25
ipc_connect_to_me(vfs_phone, 0, 0, &phonehash);
 
/*
* Allocate piece of address space for PLB.
*/
plb_ro = as_get_mappable_page(PLB_SIZE);
if (!plb_ro) {
async_wait_for(req, NULL);
return ENOMEM;
}
 
/*
* Request sharing the Path Lookup Buffer with VFS.
*/
rc = ipc_call_sync_3(vfs_phone, IPC_M_AS_AREA_RECV, plb_ro, PLB_SIZE, 0,
NULL, NULL, NULL);
if (rc) {
async_wait_for(req, NULL);
return rc;
}
/*
* Create a connection fibril to handle the callback connection.
*/
async_new_connection(phonehash, 0, NULL, fat_connection);