Changeset 51d4040 in mainline for contrib/arch/uspace/srv/vfs/vfs.bp


Ignore:
Timestamp:
2009-09-16T23:22:20Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1fb1d1
Parents:
cf7b3e0
Message:

add support for 'alternative' statement in BP
implement interface protocol repetition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/arch/uspace/srv/vfs/vfs.bp

    rcf7b3e0 r51d4040  
    2121                                                (
    2222                                                        /* root fs */
    23                                                         alternative fs tmpfs fat devfs {
     23                                                        alternative (fs; tmpfs; fat; devfs) {
    2424                                                                !fs.mounted ;
    2525                                                                !fs.ipc_m_data_write /* mount options */
     
    2929                                                        /* non-root fs */
    3030                                                        tentative {
    31                                                                 alternative fs tmpfs fat devfs {
     31                                                                alternative (fs; tmpfs; fat; devfs) {
    3232                                                                        [fnc.vfs_lookup_internal] ;
    3333                                                                        tentative {
     
    5555                        ?ipc_m_data_write /* path */ ;
    5656                        tentative {
    57                                 alternative fs tmpfs fat devfs {
     57                                alternative (fs; tmpfs; fat; devfs) {
    5858                                        [fnc.vfs_lookup_internal] ;
    5959                                        tentative {
     
    6868       
    6969        ?open_node {
    70                 alternative fs tmpfs fat devfs {
     70                alternative (fs; tmpfs; fat; devfs) {
    7171                        [fnc.vfs_open_node_internal] ;
    7272                        tentative {
     
    8080        ?close {
    8181                tentative {
    82                         alternative fs tmpfs fat devfs {
     82                        alternative (fs; tmpfs; fat; devfs) {
    8383                                [fnc.vfs_grab_phone] ;
    8484                                !fs.close ;
     
    9191                tentative {
    9292                        ?ipc_m_data_read {
    93                                 alternative fs tmpfs fat devfs {
     93                                alternative (fs; tmpfs; fat; devfs) {
    9494                                        [fnc.vfs_grab_phone] ;
    9595                                        !fs.read ;
     
    104104                tentative {
    105105                        ?ipc_m_data_write {
    106                                 alternative fs tmpfs fat devfs {
     106                                alternative (fs; tmpfs; fat; devfs) {
    107107                                        [fnc.vfs_grab_phone] ;
    108108                                        !fs.write ;
     
    116116        ?truncate {
    117117                tentative {
    118                         alternative fs tmpfs fat devfs {
     118                        alternative (fs; tmpfs; fat; devfs) {
    119119                                [fnc.vfs_grab_phone] ;
    120120                                !fs.truncate ;
     
    127127                tentative {
    128128                        ?ipc_m_data_read /* struct stat */ {
    129                                 alternative fs tmpfs fat devfs {
     129                                alternative (fs; tmpfs; fat; devfs) {
    130130                                        [fnc.vfs_grab_phone] ;
    131131                                        !fs.stat ;
     
    141141                tentative {
    142142                        ?ipc_m_data_read /* struct stat */ {
    143                                 alternative fs tmpfs fat devfs {
     143                                alternative (fs; tmpfs; fat; devfs) {
    144144                                        [fnc.vfs_lookup_internal] ;
    145145                                        tentative {
     
    155155                ?ipc_m_data_write /* path */ ;
    156156                tentative {
    157                         alternative fs tmpfs fat devfs {
     157                        alternative (fs; tmpfs; fat; devfs) {
    158158                                [fnc.vfs_lookup_internal]
    159159                        }
     
    164164                ?ipc_m_data_write /* path */ ;
    165165                tentative {
    166                         alternative fs tmpfs fat devfs {
     166                        alternative (fs; tmpfs; fat; devfs) {
    167167                                [fnc.vfs_lookup_internal]
    168168                        }
     
    175175                        ?ipc_m_data_write /* new path */ ;
    176176                        tentative {
    177                                 alternative fs tmpfs fat devfs {
     177                                alternative (fs; tmpfs; fat; devfs) {
    178178                                        [fnc.vfs_lookup_internal] /* lookup old path */ ;
    179179                                        tentative {
     
    196196        ?sync {
    197197                tentative {
    198                         alternative fs tmpfs fat devfs {
     198                        alternative (fs; tmpfs; fat; devfs) {
    199199                                !fs.sync
    200200                        }
Note: See TracChangeset for help on using the changeset viewer.