Changeset b2a18234 in mainline for uspace/srv/fs/minixfs/mfs_rw.c


Ignore:
Timestamp:
2011-07-27T10:55:19Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8b6b6a
Parents:
88be951e
Message:

Remove the inode_grow() function and fix support to sparse files

File:
1 edited

Legend:

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

    r88be951e rb2a18234  
    135135                                uint32_t zone;
    136136                                r = alloc_zone_and_clear(inst, &zone);
    137                                 if (r != EOK)
    138                                         return r;
     137                                on_error(r, return r);
    139138
    140139                                ino_i->i_izone[0] = zone;
    141140                                ino_i->dirty = true;
    142141                        } else {
    143                                 return -1;
     142                                /*Sparse block*/
     143                                *b = 0;
     144                                return EOK;
    144145                        }
    145146                }
     
    170171                        ino_i->i_izone[1] = zone;
    171172                        ino_i->dirty = true;
    172                 } else
    173                         return -1;
     173                } else {
     174                        /*Sparse block*/
     175                        *b = 0;
     176                        return EOK;
     177                }
    174178        }
    175179
     
    193197                        write_ind_zone(inst, ino_i->i_izone[1], ind_zone);
    194198                } else {
    195                         r = -1;
     199                        /*Sparse block*/
     200                        r = EOK;
     201                        *b = 0;
    196202                        goto out_free_ind1;
    197203                }
Note: See TracChangeset for help on using the changeset viewer.