Lines Matching refs:runlist
59 #include "runlist.h"
151 runlist *rl;
197 /* Decompress the mapping pairs array into a runlist. */
205 * reach the last cluster in the runlist as the buffer will
214 /* Now load all clusters in the runlist into b. */
603 * ntfs_attr_map_runlist - map (a part of) a runlist of an ntfs attribute
604 * @na: ntfs attribute for which to map (part of) a runlist
605 * @vcn: map runlist part containing this vcn
607 * Map the part of a runlist containing the @vcn of the ntfs attribute @na.
632 /* Decode the runlist. */
649 * Map the runlist of an attribute from some point to the end
689 /* Decode and merge the runlist. */
721 * runlist was modified earlier (using HOLES_DELAY
726 ntfs_log_error("End of runlist not reached\n");
739 * ntfs_attr_map_whole_runlist - map the whole runlist of an ntfs attribute
740 * @na: ntfs attribute for which to map the runlist
742 * Map the whole runlist of the ntfs attribute @na. For an attribute made up
745 * will map the runlist fragments from each of the extents thus giving access
762 /* avoid multiple full runlist mappings */
788 /* Decode the runlist. */
829 ntfs_log_perror("Couldn't find attribute for runlist mapping");
833 * Cannot check highest_vcn when the last runlist has
840 ntfs_log_perror("Failed to load full runlist: inode: %llu "
859 * @na: ntfs attribute whose runlist to use for conversion
863 * cluster number (lcn) of a device using the runlist @na->rl to map vcns to
889 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
898 * If the attempt to map the runlist failed, or we are getting
909 * ntfs_attr_find_vcn - find a vcn in the runlist of an ntfs attribute
910 * @na: ntfs attribute whose runlist to search
913 * Find the virtual cluster number @vcn in the runlist of the ntfs attribute
914 * @na and return the the address of the runlist element containing the @vcn.
916 * Note you need to distinguish between the lcn of the returned runlist
918 * on read and allocate clusters on write. You need to update the runlist, the
924 * ENOENT There is no such vcn in the runlist.
970 /* The @vcn is in an unmapped region, map the runlist and retry. */
1107 /* Find the runlist element containing the vcn. */
1308 runlist *rlc;
1332 /* Map the runlist to be able to update mapping pairs later. */
1350 /* Restore @*rl, it probably get lost during runlist mapping. */
1353 ntfs_log_error("Failed to find run after mapping runlist. "
1526 /* reserve entries in runlist if we have to split */
1672 * Must always leave two unused entries in the runlist
1713 * Map the runlist, unless it has not been created.
1733 * Mapping the runlist may cause its relocation,
1921 * full runlist. To avoid unnecessary reorganization,
1931 * If we avoided updating the runlist, we must be sure
1932 * to cancel the enlargement and put back the runlist to
2005 * When appending, we only need to map the end of the runlist,
2104 /* Find the runlist element containing the vcn. */
2484 /* Find the runlist element containing the terminal vcn. */
2607 * the current runlist while updating the mapping pairs,
3446 * record, now make sure its relevant parts (name, runlist,
4455 runlist *al_rl;
4461 "runlist. Succeed anyway.\n");
4467 "attribute list runlist.\n");
5111 runlist *rl;
5258 "runlist is still intact! Error code is %i. "
5664 /* Read and cache the whole runlist if not already done. */
5740 * Deallocate clusters from the runlist.
5752 /* Throw away the now unused runlist. */
5933 * runlist is fully mapped and fully processed.
5935 * Note : not needed if the full runlist is to be processed
6010 * If runlist is updating not from the beginning, then set
6022 * the last run in runlist, if so, then deallocate
6028 ntfs_log_perror("Bad runlist");
6300 * @from_vcn: update runlist starting this VCN
6306 * @na->allocated_size should be set to correct value for the new runlist before
6403 /* Truncate the runlist itself. */
6406 * Failed to truncate the runlist, so just throw it
6418 /* Write mapping pairs for new runlist. */
6506 runlist *rl, *rln;
6550 ntfs_log_perror("failed to map partial runlist");
6619 /* Append new clusters to attribute runlist. */
6637 * Write mapping pairs for new runlist, unless this is
6646 /* Write mapping pairs for new runlist. */
6706 /* Now, truncate the runlist itself. */
6710 * Failed to truncate the runlist, so just throw it away, it
6715 ntfs_log_perror("Couldn't truncate runlist. Rollback failed");