Changeset adb5fe3 in mainline
- Timestamp:
- 2008-11-09T21:24:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b24786a
- Parents:
- 9a3d5f0
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
r9a3d5f0 radb5fe3 192 192 void *nodep; 193 193 if (lflag & L_CREATE) 194 nodep = ops->create( lflag);194 nodep = ops->create(dev_handle, lflag); 195 195 else 196 196 nodep = ops->node_get(dev_handle, … … 263 263 void *nodep; 264 264 if (lflag & L_CREATE) 265 nodep = ops->create( lflag);265 nodep = ops->create(dev_handle, lflag); 266 266 else 267 267 nodep = ops->node_get(dev_handle, index); -
uspace/lib/libfs/libfs.h
r9a3d5f0 radb5fe3 46 46 void * (* node_get)(dev_handle_t, fs_index_t); 47 47 void (* node_put)(void *); 48 void * (* create)( int);48 void * (* create)(dev_handle_t, int); 49 49 int (* destroy)(void *); 50 50 bool (* link)(void *, void *, const char *); -
uspace/srv/fs/fat/fat_ops.c
r9a3d5f0 radb5fe3 245 245 } 246 246 247 static void *fat_create( int flags)247 static void *fat_create(dev_handle_t dev_handle, int flags) 248 248 { 249 249 return NULL; /* not supported at the moment */ -
uspace/srv/fs/tmpfs/tmpfs_dump.c
r9a3d5f0 radb5fe3 80 80 return false; 81 81 82 node = (tmpfs_dentry_t *) ops->create( L_FILE);82 node = (tmpfs_dentry_t *) ops->create(dev, L_FILE); 83 83 if (node == NULL) { 84 84 free(fname); … … 122 122 return false; 123 123 124 node = (tmpfs_dentry_t *) ops->create( L_DIRECTORY);124 node = (tmpfs_dentry_t *) ops->create(dev, L_DIRECTORY); 125 125 if (node == NULL) { 126 126 free(fname); -
uspace/srv/fs/tmpfs/tmpfs_ops.c
r9a3d5f0 radb5fe3 65 65 static tmpfs_dentry_t *root; 66 66 67 #define TMPFS_DEV 0 /**< Dummy device handle for TMPFS */ 68 67 69 /* 68 70 * Implementation of the libfs interface. … … 73 75 static void *tmpfs_node_get(dev_handle_t, fs_index_t); 74 76 static void tmpfs_node_put(void *); 75 static void *tmpfs_create_node( int);77 static void *tmpfs_create_node(dev_handle_t, int); 76 78 static bool tmpfs_link_node(void *, void *, const char *); 77 79 static int tmpfs_unlink_node(void *, void *); … … 229 231 if (!hash_table_create(&dentries, DENTRIES_BUCKETS, 1, &dentries_ops)) 230 232 return false; 231 root = (tmpfs_dentry_t *) tmpfs_create_node( L_DIRECTORY);233 root = (tmpfs_dentry_t *) tmpfs_create_node(TMPFS_DEV, L_DIRECTORY); 232 234 if (!root) { 233 235 hash_table_destroy(&dentries); … … 283 285 } 284 286 285 void *tmpfs_create_node( int lflag)287 void *tmpfs_create_node(dev_handle_t dev_handle, int lflag) 286 288 { 287 289 assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY));
Note:
See TracChangeset
for help on using the changeset viewer.