Changes in uspace/srv/fs/cdfs/cdfs_ops.c [feeac0d:251d4dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
rfeeac0d r251d4dd 249 249 cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link); 250 250 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);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 } 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; 619 640 } 620 641 … … 635 656 .is_directory = cdfs_is_directory, 636 657 .is_file = cdfs_is_file, 637 .service_get = cdfs_service_get 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 638 662 }; 639 663
Note:
See TracChangeset
for help on using the changeset viewer.