Changeset 37e7dc54 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2007-09-27T15:27:53Z (18 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/vfs/vfs.c

    rbcf23cf r37e7dc54  
    121121        list_initialize(&plb_head);
    122122        plb = as_get_mappable_page(PLB_SIZE);
    123 //      memset(plb, 0, PLB_SIZE);
     123        if (!plb) {
     124                printf("Cannot allocate a mappable piece of address space\n");
     125                return ENOMEM;
     126        }
     127        if (as_area_create(plb, PLB_SIZE, AS_AREA_READ | AS_AREA_WRITE |
     128            AS_AREA_CACHEABLE) != plb) {
     129                printf("Cannot create address space area.\n");
     130                return ENOMEM;
     131        }
     132        memset(plb, 0, PLB_SIZE);
    124133       
    125134        /*
Note: See TracChangeset for help on using the changeset viewer.