Changeset 828d215 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2007-11-03T15:25:01Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ec01adf
Parents:
20614d0
Message:

VFS work.

Allocate the open filess array dynamically and protect access to it via a
per-connection futex. Defer its allocation until the client makes a first
VFS_OPEN request.

Actually call vfs_mount() and vfs_open(), respectively, when the VFS_MOUNT and
VFS_OPEN requests, respectively, are received from the client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.c

    r20614d0 r828d215  
    5757
    5858        /*
    59          * Initialize the table of open files.
    60          */
    61         if (!vfs_conn_open_files_init()) {
    62                 ipc_answer_fast_0(iid, ENOMEM);
    63                 return;
    64         }
    65 
    66         /*
    6759         * The connection was opened via the IPC_CONNECT_ME_TO call.
    6860         * This call needs to be answered.
     
    9789                        break;
    9890                case VFS_MOUNT:
     91                        vfs_mount(callid, &call);
     92                        keep_on_going = false;
     93                        break;
     94                case VFS_OPEN:
     95                        vfs_open(callid, &call);
     96                        break;
    9997                case VFS_UNMOUNT:
    100                 case VFS_OPEN:
    10198                case VFS_CREATE:
    10299                case VFS_CLOSE:
Note: See TracChangeset for help on using the changeset viewer.