Changeset 45f244b in mainline
- Timestamp:
 - 2008-04-15T03:15:43Z (18 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 9a5f0cb
 - Parents:
 - 80e8482
 - Location:
 - uspace
 - Files:
 - 
      
- 3 edited
 
- 
          
  lib/libfs/libfs.h (modified) (1 diff)
 - 
          
  srv/fs/fat/fat_ops.c (modified) (1 diff)
 - 
          
  srv/fs/tmpfs/tmpfs_ops.c (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/libfs/libfs.h
r80e8482 r45f244b 47 47 void (* node_put)(void *); 48 48 void * (* create)(int); 49 bool(* destroy)(void *);49 int (* destroy)(void *); 50 50 bool (* link)(void *, void *, const char *); 51 51 int (* unlink)(void *, void *);  - 
      
uspace/srv/fs/fat/fat_ops.c
r80e8482 r45f244b 312 312 } 313 313 314 static boolfat_destroy(void *node)315 { 316 return false; /* not supported at the moment */314 static int fat_destroy(void *node) 315 { 316 return ENOTSUP; /* not supported at the moment */ 317 317 } 318 318  - 
      
uspace/srv/fs/tmpfs/tmpfs_ops.c
r80e8482 r45f244b 76 76 static bool tmpfs_link_node(void *, void *, const char *); 77 77 static int tmpfs_unlink_node(void *, void *); 78 static booltmpfs_destroy_node(void *);78 static int tmpfs_destroy_node(void *); 79 79 80 80 /* Implementation of helper functions. */ … … 375 375 } 376 376 377 booltmpfs_destroy_node(void *nodep)377 int tmpfs_destroy_node(void *nodep) 378 378 { 379 379 tmpfs_dentry_t *dentry = (tmpfs_dentry_t *) nodep; … … 391 391 free(dentry->data); 392 392 free(dentry); 393 return true;393 return EOK; 394 394 } 395 395 … … 580 580 dev_handle_t dev_handle = (dev_handle_t)IPC_GET_ARG1(*request); 581 581 fs_index_t index = (fs_index_t)IPC_GET_ARG2(*request); 582 int rc; 582 583 583 584 link_t *hlp; … … 590 591 tmpfs_dentry_t *dentry = hash_table_get_instance(hlp, tmpfs_dentry_t, 591 592 dh_link); 592 tmpfs_destroy_node(dentry);593 ipc_answer_0(rid, EOK);593 rc = tmpfs_destroy_node(dentry); 594 ipc_answer_0(rid, rc); 594 595 } 595 596  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  