Changeset 44c6091f in mainline for uspace/srv/fs/minixfs/mfs_ops.c


Ignore:
Timestamp:
2011-04-30T12:24:14Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fdc05ca
Parents:
8a49fed
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_ops.c

    r8a49fed r44c6091f  
    3838
    3939static bool check_magic_number(uint16_t magic, bool *native,
    40                                 mfs_version_t *version, bool *longfilenames);
     40                               mfs_version_t *version, bool *longfilenames);
    4141static int mfs_node_core_get(fs_node_t **rfn, struct mfs_instance *inst,
    42                         fs_index_t index);
     42                             fs_index_t index);
    4343
    4444static int mfs_node_put(fs_node_t *fsnode);
     
    8585{
    8686        devmap_handle_t devmap_handle = (devmap_handle_t) IPC_GET_ARG1(*request);
    87         enum cache_mode cmode; 
     87        enum cache_mode cmode;
    8888        struct mfs_superblock *sb;
    8989        struct mfs3_superblock *sb3;
     
    9797        char *opts;
    9898        int rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
    99        
     99
    100100        if (rc != EOK) {
    101101                mfsdebug("Can't accept async data write\n");
     
    212212                sbi->dirsize = longnames ? MFSL_DIRSIZE : MFS_DIRSIZE;
    213213                sbi->max_name_len = longnames ? MFS_L_MAX_NAME_LEN :
    214                                 MFS_MAX_NAME_LEN;
     214                                    MFS_MAX_NAME_LEN;
    215215        }
    216216        sbi->itable_off = 2 + sbi->ibmap_blocks + sbi->zbmap_blocks;
    217  
     217
    218218        free(sb);
    219219
     
    259259        fs_node_t *fsnode;
    260260        uint32_t inum;
    261        
     261
    262262        mfsdebug("create_node()\n");
    263263
     
    287287                goto out_err_1;
    288288        }
    289        
     289
    290290        fsnode = malloc(sizeof(fs_node_t));
    291291        if (!fsnode) {
     
    365365                        /*Hit!*/
    366366                        mfs_node_core_get(rfn, mnode->instance,
    367                                 d_info->d_inum);
     367                                          d_info->d_inum);
    368368                        free(d_info);
    369369                        goto found;
     
    445445
    446446static int mfs_node_core_get(fs_node_t **rfn, struct mfs_instance *inst,
    447                         fs_index_t index)
     447                             fs_index_t index)
    448448{
    449449        fs_node_t *node = NULL;
     
    546546
    547547        struct mfs_dentry_info *d_info;
    548        
     548
    549549        /* The first two dentries are always . and .. */
    550550        int i = 2;
     
    586586        fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request);
    587587        aoff64_t pos = (aoff64_t) MERGE_LOUP32(IPC_GET_ARG3(*request),
    588                                 IPC_GET_ARG4(*request));
     588                                               IPC_GET_ARG4(*request));
    589589        fs_node_t *fn;
    590590
     
    643643found:
    644644                async_data_read_finalize(callid, d_info->d_name,
    645                                 str_size(d_info->d_name) + 1);
     645                                         str_size(d_info->d_name) + 1);
    646646                bytes = ((pos - spos) + 1);
    647647        } else {
     
    673673                        memset(buf, 0, sizeof(sbi->block_size));
    674674                        async_data_read_finalize(callid,
    675                             buf + pos % sbi->block_size, bytes);
     675                                                buf + pos % sbi->block_size, bytes);
    676676                        free(buf);
    677677                        goto out_success;
     
    682682
    683683                async_data_read_finalize(callid, b->data +
    684                                 pos % sbi->block_size, bytes);
     684                                         pos % sbi->block_size, bytes);
    685685
    686686                rc = block_put(b);
     
    695695        async_answer_1(rid, rc, (sysarg_t)bytes);
    696696        return;
    697 out_error: ;
     697out_error:
     698        ;
    698699        int tmp = mfs_node_put(fn);
    699700        async_answer_0(callid, tmp != EOK ? tmp : rc);
     
    709710        fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request);
    710711        aoff64_t pos = (aoff64_t) MERGE_LOUP32(IPC_GET_ARG3(*request),
    711                                                 IPC_GET_ARG4(*request));
     712                                               IPC_GET_ARG4(*request));
    712713
    713714        fs_node_t *fn;
     
    835836        for (link = inst_list.next; link != &inst_list; link = link->next) {
    836837                instance_ptr = list_get_instance(link, struct mfs_instance,
    837                                 link);
    838                
     838                                                 link);
     839
    839840                if (instance_ptr->handle == handle) {
    840841                        *instance = instance_ptr;
     
    851852
    852853static bool check_magic_number(uint16_t magic, bool *native,
    853                                 mfs_version_t *version, bool *longfilenames)
     854                               mfs_version_t *version, bool *longfilenames)
    854855{
    855856        bool rc = true;
     
    893894/**
    894895 * @}
    895  */ 
    896 
     896 */
     897
Note: See TracChangeset for help on using the changeset viewer.