Changes in uspace/srv/fs/mfs/mfs_inode.c [7a46bfe:40a2af3] in mainline
- File:
-
- 1 edited
-
uspace/srv/fs/mfs/mfs_inode.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_inode.c
r7a46bfe r40a2af3 48 48 struct mfs_ino_info **ino_ptr, uint32_t inum); 49 49 50 50 /**Read a MINIX inode from disk 51 * 52 * @param inst Pointer to the filesystem instance. 53 * @param ino_i Pointer to the generic MINIX inode 54 * where the inode content will be stored. 55 * @param index index of the inode to read. 56 * 57 * @return EOK on success or a negative error code. 58 */ 51 59 int 52 60 mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i, … … 77 85 78 86 sbi = instance->sbi; 79 assert(sbi);80 87 81 88 /*inode 0 does not exist*/ … … 142 149 143 150 sbi = instance->sbi; 144 assert(sbi);145 151 146 152 /*inode 0 does not exist*/ … … 185 191 } 186 192 193 /**Write a MINIX inode on disk (if marked as dirty) 194 * 195 * @param mnode Pointer to the generic MINIX inode in memory. 196 * 197 * @return EOK on success or a negative error code. 198 */ 187 199 int 188 mfs_put_inode _core(struct mfs_node *mnode)200 mfs_put_inode(struct mfs_node *mnode) 189 201 { 190 202 int rc = EOK; 191 192 assert(mnode);193 assert(mnode->ino_i);194 203 195 204 if (!mnode->ino_i->dirty) … … 197 206 198 207 struct mfs_instance *inst = mnode->instance; 199 assert(inst);200 208 struct mfs_sb_info *sbi = inst->sbi; 201 assert(sbi);202 209 203 210 if (sbi->fs_version == MFS_VERSION_V1) … … 299 306 } 300 307 308 /**Reduce the inode size of a given number of bytes 309 * 310 * @param mnode Pointer to the generic MINIX inode in memory. 311 * @param size_shrink Number of bytes that will be subtracted to the inode. 312 * 313 * @return EOK on success or a negative error code. 314 */ 301 315 int 302 316 mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink)
Note:
See TracChangeset
for help on using the changeset viewer.
