Changeset 37e7dc54 in mainline for uspace/srv/fs/fat/fat.c


Ignore:
Timestamp:
2007-09-27T15:27:53Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c117bb
Parents:
bcf23cf
Message:

VFS work.
Modify the protocol so that VFS and FAT (or any other FS) have to share the Path
Lookup Buffer in read-only mode.

File:
1 edited

Legend:

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

    rbcf23cf r37e7dc54  
    4343#include <unistd.h>
    4444#include <stdio.h>
     45#include <as.h>>
    4546#include "../../vfs/vfs.h"
    4647
     
    6263        }
    6364};
     65
     66uint8_t *plb_ro = NULL;
    6467
    6568/**
     
    142145
    143146        /*
     147         * Allocate piece of address space for PLB.
     148         */
     149        plb_ro = as_get_mappable_page(PLB_SIZE);
     150        if (!plb_ro) {
     151                async_wait_for(req, NULL);
     152                return ENOMEM;
     153        }
     154
     155        /*
     156         * Request sharing the Path Lookup Buffer with VFS.
     157         */
     158        rc = ipc_call_sync_3(vfs_phone, IPC_M_AS_AREA_RECV, plb_ro, PLB_SIZE, 0,
     159            NULL, NULL, NULL);
     160        if (rc) {
     161                async_wait_for(req, NULL);
     162                return rc;
     163        }
     164         
     165        /*
    144166         * Create a connection fibril to handle the callback connection.
    145167         */
Note: See TracChangeset for help on using the changeset viewer.