Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_ops.c

    r781408e rfeeac0d  
    365365       
    366366        /* Check for duplicate entries */
    367         list_foreach(parent->cs_list, link) {
    368                 cdfs_dentry_t *dentry =
    369                     list_get_instance(link, cdfs_dentry_t, link);
    370                
     367        list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
    371368                if (str_cmp(dentry->name, name) == 0)
    372369                        return EEXIST;
     
    524521        }
    525522       
    526         list_foreach(parent->cs_list, link) {
    527                 cdfs_dentry_t *dentry =
    528                     list_get_instance(link, cdfs_dentry_t, link);
    529                
     523        list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
    530524                if (str_cmp(dentry->name, component) == 0) {
    531525                        *fn = get_cached_node(parent->service_id, dentry->index);
     
    623617{
    624618        return 0;
    625 }
    626 
    627 static int cdfs_size_block(service_id_t service_id, uint32_t *size)
    628 {
    629         *size = BLOCK_SIZE;
    630 
    631         return EOK;
    632 }
    633 
    634 static int cdfs_total_block_count(service_id_t service_id, uint64_t *count)
    635 {
    636         *count = 0;
    637        
    638         return EOK;
    639 }
    640 
    641 static int cdfs_free_block_count(service_id_t service_id, uint64_t *count)
    642 {
    643         *count = 0;
    644        
    645         return EOK;
    646619}
    647620
     
    662635        .is_directory = cdfs_is_directory,
    663636        .is_file = cdfs_is_file,
    664         .service_get = cdfs_service_get,
    665         .size_block = cdfs_size_block,
    666         .total_block_count = cdfs_total_block_count,
    667         .free_block_count = cdfs_free_block_count
     637        .service_get = cdfs_service_get
    668638};
    669639
Note: See TracChangeset for help on using the changeset viewer.