Changes in uspace/srv/fs/cdfs/cdfs_ops.c [251d4dd:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r251d4dd rfeeac0d 249 249 cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link); 250 250 251 if (node->type == CDFS_DIRECTORY) {252 link_t *link;253 while ((link = list_first(&node->cs_list)) != NULL) {254 cdfs_dentry_t *dentry = list_get_instance(link, cdfs_dentry_t, link);255 list_remove(&dentry->link);256 free(dentry);257 }251 assert(node->type == CDFS_DIRECTORY); 252 253 link_t *link; 254 while ((link = list_first(&node->cs_list)) != NULL) { 255 cdfs_dentry_t *dentry = list_get_instance(link, cdfs_dentry_t, link); 256 list_remove(&dentry->link); 257 free(dentry); 258 258 } 259 259 … … 617 617 { 618 618 return 0; 619 }620 621 static int cdfs_size_block(service_id_t service_id, uint32_t *size)622 {623 *size = BLOCK_SIZE;624 625 return EOK;626 }627 628 static int cdfs_total_block_count(service_id_t service_id, uint64_t *count)629 {630 *count = 0;631 632 return EOK;633 }634 635 static int cdfs_free_block_count(service_id_t service_id, uint64_t *count)636 {637 *count = 0;638 639 return EOK;640 619 } 641 620 … … 656 635 .is_directory = cdfs_is_directory, 657 636 .is_file = cdfs_is_file, 658 .service_get = cdfs_service_get, 659 .size_block = cdfs_size_block, 660 .total_block_count = cdfs_total_block_count, 661 .free_block_count = cdfs_free_block_count 637 .service_get = cdfs_service_get 662 638 }; 663 639
Note:
See TracChangeset
for help on using the changeset viewer.