Changeset 6468072e in mainline
- Timestamp:
- 2011-07-25T19:05:40Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7accfac
- Parents:
- 365e5e08
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs.h
r365e5e08 r6468072e 209 209 210 210 extern int 211 free_zone(struct mfs_node *mnode, const uint32_t zone);212 213 extern int214 211 prune_ind_zones(struct mfs_node *mnode, size_t new_size); 215 212 -
uspace/srv/fs/minixfs/mfs_rw.c
r365e5e08 r6468072e 90 90 } 91 91 92 int93 free_zone(struct mfs_node *mnode, const uint32_t zone)94 {95 int r;96 uint32_t old_zone;97 98 r = rw_map_ondisk(&old_zone, mnode, zone, true, 0);99 on_error(r, return r);100 101 if (old_zone > 0)102 r = mfs_free_zone(mnode->instance, old_zone);103 104 return r;105 }106 107 92 static int 108 93 rw_map_ondisk(uint32_t *b, const struct mfs_node *mnode, int rblock,
Note:
See TracChangeset
for help on using the changeset viewer.