Lines Matching refs:runlist
74 #include "runlist.h"
191 runlist *head_rl;
214 runlist mftmir_rl; /* $MFTMirr AT_DATA's new position */
663 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len)
670 static int rl_items(runlist *rl)
687 static void dump_runlist(runlist *rl)
709 static void collect_resize_constraints(ntfs_resize_t *resize, runlist *rl)
776 static void collect_relocation_info(ntfs_resize_t *resize, runlist *rl)
831 runlist *rl;
860 err_exit("Corrupt runlist in inode %lld attr %x LCN "
1108 runlist *rl;
1175 static void rl_fixup(runlist **rl)
1177 runlist *tmp = *rl;
1185 err_exit("Empty unmapped runlist! Please report!\n");
1196 err_exit("Unmapped runlist in the middle! "
1205 * Plug a replacement (partial) runlist into full runlist
1224 /* allocate a new runlist able to hold both */
1284 /* deallocate the old runlist and replace */
1293 * Expand the new runlist in new extent(s)
1299 * Sometimes the runlist being reallocated is within an extent,
1300 * so we have a partial runlist to plug into an existing one
1305 * This cannot be done on the runlist part stored in a single
1314 * because the old runlist is still in use and the bootsector has
1348 * The runlist is first updated in memory, and
1354 perr_exit("Could not update runlist "
1375 * Reload the MFT before merging delayed updates of runlist
1386 * are obsolete, and we have to read the partially updated runlist
1460 * Process delayed runlist updates
1489 * and the MFT data runlist has to be updated last in order
1500 /* Update the MFT data runlist later */
1521 /* in "no action" mode, check updating the MFT runlist now */
1538 * Queue a runlist replacement for later update
1543 static void replace_later(ntfs_resize_t *resize, runlist *rl, runlist *head_rl)
1597 * Replace the runlist in an attribute
1599 * This sometimes requires expanding the runlist into another extent,
1601 * is put in a delay queue, and the caller must not free the runlist.
1607 static int replace_attribute_runlist(ntfs_resize_t *resize, runlist *rl)
1612 runlist *head_rl;
1702 static void set_bitmap_clusters(struct bitmap *bm, runlist *rl, u8 bit)
1708 static void release_bitmap_clusters(struct bitmap *bm, runlist *rl)
1779 static runlist *alloc_cluster(struct bitmap *bm,
1785 runlist *rl = NULL;
1803 if (!(rl = (runlist *)realloc(rl, rl_size)))
1928 static void relocate_clusters(ntfs_resize_t *r, runlist *dest_rl, s64 src_lcn)
1944 static void rl_split_run(runlist **rl, int run, s64 pos)
1946 runlist *rl_new, *rle_new, *rle;
1978 static void rl_insert_at_run(runlist **rl, int run, runlist *ins)
1982 runlist *rle;
1990 if (!(*rl = (runlist *)realloc(*rl, new_size)))
2008 static void relocate_run(ntfs_resize_t *resize, runlist **rl, int run)
2012 runlist *relocate_rl; /* relocate runlist to relocate_rl */
2068 runlist *rl;
2088 err_exit("Corrupt runlist in MTF %llu attr %x LCN "
2273 err_exit("Internal error : no runlist for $MFT\n");
2387 * Open the attribute $BadClust:$Bad and get its runlist
2466 runlist **rl,
2506 runlist *rl;
2560 /* switch to the new bitmap runlist */
2615 runlist *rl;
2776 /* Be sure the MFTMirr holds the updated MFT runlist */
3258 /* get the runlist of unnamed bitmap */
3300 runlist *rl;
3828 * Process delayed runlist updates
3895 * Update a runlist into an attribute
3908 runlist *head_rl;
4056 err_printf("Could not get a runlist of inode %lld\n",
4070 * The returned runlist is the old rebased runlist for $DATA,
4071 * which is generally different from the new computed runlist.
4131 /* rebase the old runlist */
4185 err_printf("Could not get the data runlist of inode %lld\n",
4442 ntfs_log_verbose("Delayed runlist updatings\n");
4459 ntfs_log_verbose("Delayed runlist updatings\n");