Changeset 0c82d28 in mainline


Ignore:
Timestamp:
2007-12-16T17:16:12Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d5cdffe
Parents:
efd4a72
Message:

Move incomplete fs interface from fat.h to libfs.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libfs/libfs.h

    refd4a72 r0c82d28  
    5050extern int fs_register(int, fs_reg_t *, vfs_info_t *, async_client_conn_t);
    5151
     52extern int block_read(int, unsigned long, void *);
     53extern int block_write(int, unsigned long, void *);
     54
     55extern void node_add_mp(int, unsigned long);
     56extern void node_del_mp(int, unsigned long);
     57extern bool node_is_mp(int, unsigned long);
    5258#endif
    5359
  • uspace/srv/fs/fat/fat.c

    refd4a72 r0c82d28  
    115115}
    116116
    117 int block_read(int dev_handle, unsigned long blkno, void *buf)
    118 {
    119 }
    120 
    121117int main(int argc, char **argv)
    122118{
     
    138134        }
    139135       
    140         dprintf("FAT filesystem registered, fs_handle=%d.\n", fat_reg.fs_handle);
     136        dprintf("FAT filesystem registered, fs_handle=%d.\n",
     137            fat_reg.fs_handle);
    141138
    142139        async_manager();
  • uspace/srv/fs/fat/fat.h

    refd4a72 r0c82d28  
    139139extern void fat_lookup(ipc_callid_t, ipc_call_t *);
    140140
    141 /*
    142  * The following interfaces are rather fs-neutral and might be later moved to a
    143  * dedicated library (e.g. libfs). We just wait until the interfaces stabilize
    144  * and until there is more than one fs implementation.
    145  */
    146 extern int block_read(int, unsigned long, void *);
    147 extern int block_write(int, unsigned long, void *);
    148 
    149 extern void node_add_mp(int, unsigned long);
    150 extern void node_del_mp(int, unsigned long);
    151 extern bool node_is_mp(int, unsigned long);
    152 
    153141#endif
    154142
Note: See TracChangeset for help on using the changeset viewer.