Changeset 05b9912 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2009-06-03T18:54:49Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17fd1d4
Parents:
215abc1
Message:

VFS rewrite:

  • add new VFS methods
    • VFS_NODE for getting VFS node for a file descriptor
    • VFS_OPEN_NODE for opening an i-node directly
    • VFS_DEVICE for getting the underlying device of a file (if any)
    • VFS_SYNC for syncing buffers
  • L_OPEN flag is set to underlying filesystem in VFS_LOOKUP when opening a file to support initialization (if any)
  • VFS_CLOSE is now propagated to underlying filesystem to support cleanup (if any)
File:
1 edited

Legend:

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

    r215abc1 r05b9912  
    9595                        vfs_open(callid, &call);
    9696                        break;
     97                case VFS_OPEN_NODE:
     98                        vfs_open_node(callid, &call);
     99                        break;
    97100                case VFS_CLOSE:
    98101                        vfs_close(callid, &call);
     
    118121                case VFS_RENAME:
    119122                        vfs_rename(callid, &call);
     123                        break;
     124                case VFS_DEVICE:
     125                        vfs_device(callid, &call);
     126                        break;
     127                case VFS_SYNC:
     128                        vfs_sync(callid, &call);
     129                        break;
     130                case VFS_NODE:
     131                        vfs_node(callid, &call);
    120132                        break;
    121133                default:
     
    165177         * Set a connectio handling function/fibril.
    166178         */
     179        async_set_pending(vfs_process_pending_mount);
    167180        async_set_client_connection(vfs_connection);
    168181       
Note: See TracChangeset for help on using the changeset viewer.