Changeset 796c276 in mainline
- Timestamp:
- 2011-03-03T20:12:36Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 163cf12
- Parents:
- 9ffbdf1
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r9ffbdf1 r796c276 97 97 uspace/dist/srv/dp8390 98 98 uspace/dist/srv/eth 99 uspace/dist/srv/ext2 99 uspace/dist/srv/ext2fs 100 100 uspace/dist/srv/fat 101 101 uspace/dist/srv/fb … … 142 142 uspace/srv/devmap/devmap 143 143 uspace/srv/fs/devfs/devfs 144 uspace/srv/fs/ext2 /ext2144 uspace/srv/fs/ext2fs/ext2fs 145 145 uspace/srv/fs/fat/fat 146 146 uspace/srv/fs/tmpfs/tmpfs -
boot/Makefile.common
r9ffbdf1 r796c276 98 98 $(USPACE_PATH)/srv/fs/fat/fat \ 99 99 $(USPACE_PATH)/srv/fs/pipefs/pipefs \ 100 $(USPACE_PATH)/srv/fs/ext2 /ext2\100 $(USPACE_PATH)/srv/fs/ext2fs/ext2fs \ 101 101 $(USPACE_PATH)/srv/taskmon/taskmon \ 102 102 $(USPACE_PATH)/srv/hw/netif/ne2000/ne2000 \ -
uspace/Makefile
r9ffbdf1 r796c276 75 75 srv/fs/devfs \ 76 76 srv/fs/pipefs \ 77 srv/fs/ext2 \77 srv/fs/ext2fs \ 78 78 srv/hid/adb_mouse \ 79 79 srv/hid/char_mouse \ -
uspace/srv/fs/ext2fs/Makefile
r9ffbdf1 r796c276 32 32 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBEXT2_PREFIX)/libext2.a 33 33 EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) -I$(LIBEXT2_PREFIX) 34 BINARY = ext2 34 BINARY = ext2fs 35 35 36 36 SOURCES = \ 37 ext2 .c \38 ext2 _ops.c37 ext2fs.c \ 38 ext2fs_ops.c 39 39 40 40 include $(USPACE_PREFIX)/Makefile.common -
uspace/srv/fs/ext2fs/ext2fs.c
r9ffbdf1 r796c276 37 37 */ 38 38 39 #include "ext2 .h"39 #include "ext2fs.h" 40 40 #include <ipc/services.h> 41 41 #include <ipc/ns.h> … … 48 48 #include "../../vfs/vfs.h" 49 49 50 #define NAME "ext2 "50 #define NAME "ext2fs" 51 51 52 vfs_info_t ext2 _vfs_info = {52 vfs_info_t ext2fs\_vfs_info = { 53 53 .name = NAME, 54 54 }; 55 55 56 fs_reg_t ext2 _reg;56 fs_reg_t ext2fs_reg; 57 57 58 58 /** … … 62 62 * The connection fibril accepts VFS requests from VFS. If there is only one 63 63 * instance of the fibril, VFS will need to serialize all VFS requests it sends 64 * to EXT2 . To overcome this bottleneck, VFS can send EXT2the IPC_M_CONNECT_ME_TO64 * to EXT2FS. To overcome this bottleneck, VFS can send EXT2FS the IPC_M_CONNECT_ME_TO 65 65 * call. In that case, a new connection fibril will be created, which in turn 66 66 * will accept the call. Thus, a new phone will be opened for VFS. … … 68 68 * There are few issues with this arrangement. First, VFS can run out of 69 69 * available phones. In that case, VFS can close some other phones or use one 70 * phone for more serialized requests. Similarily, EXT2 can refuse to duplicate70 * phone for more serialized requests. Similarily, EXT2FS can refuse to duplicate 71 71 * the connection. VFS should then just make use of already existing phones and 72 72 * route its requests through them. To avoid paying the fibril creation price 73 * upon each request, EXT2 might want to keep the connections open after the73 * upon each request, EXT2FS might want to keep the connections open after the 74 74 * request has been completed. 75 75 */ … … 95 95 return; 96 96 case VFS_OUT_MOUNTED: 97 ext2 _mounted(callid, &call);97 ext2fs_mounted(callid, &call); 98 98 break; 99 99 case VFS_OUT_MOUNT: 100 ext2 _mount(callid, &call);100 ext2fs_mount(callid, &call); 101 101 break; 102 102 case VFS_OUT_UNMOUNTED: 103 ext2 _unmounted(callid, &call);103 ext2fs_unmounted(callid, &call); 104 104 break; 105 105 case VFS_OUT_UNMOUNT: 106 ext2 _unmount(callid, &call);106 ext2fs_unmount(callid, &call); 107 107 break; 108 108 case VFS_OUT_LOOKUP: 109 ext2 _lookup(callid, &call);109 ext2fs_lookup(callid, &call); 110 110 break; 111 111 case VFS_OUT_READ: 112 ext2 _read(callid, &call);112 ext2fs_read(callid, &call); 113 113 break; 114 114 case VFS_OUT_WRITE: 115 ext2 _write(callid, &call);115 ext2fs_write(callid, &call); 116 116 break; 117 117 case VFS_OUT_TRUNCATE: 118 ext2 _truncate(callid, &call);118 ext2fs_truncate(callid, &call); 119 119 break; 120 120 case VFS_OUT_STAT: 121 ext2 _stat(callid, &call);121 ext2fs_stat(callid, &call); 122 122 break; 123 123 case VFS_OUT_CLOSE: 124 ext2 _close(callid, &call);124 ext2fs_close(callid, &call); 125 125 break; 126 126 case VFS_OUT_DESTROY: 127 ext2 _destroy(callid, &call);127 ext2fs_destroy(callid, &call); 128 128 break; 129 129 case VFS_OUT_OPEN_NODE: 130 ext2 _open_node(callid, &call);130 ext2fs_open_node(callid, &call); 131 131 break; 132 132 case VFS_OUT_SYNC: 133 ext2 _sync(callid, &call);133 ext2fs_sync(callid, &call); 134 134 break; 135 135 default: … … 153 153 } 154 154 155 rc = fs_register(vfs_phone, &ext2 _reg, &ext2_vfs_info, ext2_connection);155 rc = fs_register(vfs_phone, &ext2fs_reg, &ext2fs_vfs_info, ext2_connection); 156 156 157 157 printf(NAME ": Accepting connections\n"); -
uspace/srv/fs/ext2fs/ext2fs.h
r9ffbdf1 r796c276 31 31 */ 32 32 33 #ifndef EXT2 _EXT2_H_34 #define EXT2 _EXT2_H_33 #ifndef EXT2FS_EXT2FS_H_ 34 #define EXT2FS_EXT2FS_H_ 35 35 36 36 #include <libext2.h> … … 48 48 #define min(a, b) ((a) < (b) ? (a) : (b)) 49 49 50 extern fs_reg_t ext2 _reg;50 extern fs_reg_t ext2fs_reg; 51 51 52 extern void ext2_mounted(ipc_callid_t, ipc_call_t *); 53 extern void ext2_mount(ipc_callid_t, ipc_call_t *); 54 extern void ext2_unmounted(ipc_callid_t, ipc_call_t *); 55 extern void ext2_unmount(ipc_callid_t, ipc_call_t *); 56 extern void ext2_lookup(ipc_callid_t, ipc_call_t *); 57 extern void ext2_read(ipc_callid_t, ipc_call_t *); 58 extern void ext2_write(ipc_callid_t, ipc_call_t *); 59 extern void ext2_truncate(ipc_callid_t, ipc_call_t *); 60 extern void ext2_stat(ipc_callid_t, ipc_call_t *); 61 extern void ext2_close(ipc_callid_t, ipc_call_t *); 62 extern void ext2_destroy(ipc_callid_t, ipc_call_t *); 63 extern void ext2_open_node(ipc_callid_t, ipc_call_t *); 64 extern void ext2_stat(ipc_callid_t, ipc_call_t *); 65 extern void ext2_sync(ipc_callid_t, ipc_call_t *); 52 extern int ext2fs_global_init(void); 53 extern void ext2fs_mounted(ipc_callid_t, ipc_call_t *); 54 extern void ext2fs_mount(ipc_callid_t, ipc_call_t *); 55 extern void ext2fs_unmounted(ipc_callid_t, ipc_call_t *); 56 extern void ext2fs_unmount(ipc_callid_t, ipc_call_t *); 57 extern void ext2fs_lookup(ipc_callid_t, ipc_call_t *); 58 extern void ext2fs_read(ipc_callid_t, ipc_call_t *); 59 extern void ext2fs_write(ipc_callid_t, ipc_call_t *); 60 extern void ext2fs_truncate(ipc_callid_t, ipc_call_t *); 61 extern void ext2fs_stat(ipc_callid_t, ipc_call_t *); 62 extern void ext2fs_close(ipc_callid_t, ipc_call_t *); 63 extern void ext2fs_destroy(ipc_callid_t, ipc_call_t *); 64 extern void ext2fs_open_node(ipc_callid_t, ipc_call_t *); 65 extern void ext2fs_stat(ipc_callid_t, ipc_call_t *); 66 extern void ext2fs_sync(ipc_callid_t, ipc_call_t *); 66 67 67 68 #endif
Note:
See TracChangeset
for help on using the changeset viewer.