Changes in uspace/srv/fs/mfs/mfs_rw.c [980671e7:7a46bfe] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_rw.c
r980671e7 r7a46bfe 53 53 *bytes, this function returns the on-disk block 54 54 *relative to that position. 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. 55 *Returns zero if the block does not exist. 61 56 */ 62 57 int … … 232 227 } 233 228 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 */ 229 /*Free unused indirect zones*/ 241 230 int 242 231 mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size) … … 250 239 mfs_version_t fs_version = sbi->fs_version; 251 240 252 assert(new_size <= ino_i->i_size);253 254 241 if (fs_version == MFS_VERSION_V1) { 255 242 nr_direct = V1_NR_DIRECT_ZONES;
Note:
See TracChangeset
for help on using the changeset viewer.