Changeset 980671e7 in mainline
- Timestamp:
- 2011-09-09T18:08:06Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3781092
- Parents:
- 77ec4d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_rw.c
r77ec4d9 r980671e7 53 53 *bytes, this function returns the on-disk block 54 54 *relative to that position. 55 *Returns zero if the block does not exist. 55 * 56 * @param b Pointer to a 32bit number where the block number will be stored 57 * @param mnode Pointer to a generic MINIX inode in memory. 58 * @param pos Position in file. 59 * 60 * @return EOK on success or a negative error code. 56 61 */ 57 62 int … … 227 232 } 228 233 229 /*Free unused indirect zones*/ 234 /**Free unused indirect zones from a MINIX inode according to it's new size. 235 * 236 * @param mnode Pointer to a generic MINIX inode in memory. 237 * @param new_size The new size of the inode. 238 * 239 * @return EOK on success or a negative error code. 240 */ 230 241 int 231 242 mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size) … … 239 250 mfs_version_t fs_version = sbi->fs_version; 240 251 252 assert(new_size <= ino_i->i_size); 253 241 254 if (fs_version == MFS_VERSION_V1) { 242 255 nr_direct = V1_NR_DIRECT_ZONES;
Note:
See TracChangeset
for help on using the changeset viewer.