Changeset 0773396 in mainline for uspace/srv/fs/cdfs/cdfs_ops.c


Ignore:
Timestamp:
2013-12-25T13:05:25Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc54126c
Parents:
f4a47e52 (diff), 6946f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 edited

Legend:

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

    rf4a47e52 r0773396  
    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;
     619}
     620
     621static int cdfs_size_block(service_id_t service_id, uint32_t *size)
     622{
     623        *size = BLOCK_SIZE;
     624
     625        return EOK;
     626}
     627
     628static int cdfs_total_block_count(service_id_t service_id, uint64_t *count)
     629{
     630        *count = 0;
     631       
     632        return EOK;
     633}
     634
     635static int cdfs_free_block_count(service_id_t service_id, uint64_t *count)
     636{
     637        *count = 0;
     638       
     639        return EOK;
    625640}
    626641
     
    641656        .is_directory = cdfs_is_directory,
    642657        .is_file = cdfs_is_file,
    643         .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
    644662};
    645663
Note: See TracChangeset for help on using the changeset viewer.