Home
last modified time | relevance | path

Searched refs:runlist (Results 1 - 17 of 17) sorted by relevance

/third_party/ntfs-3g/include/ntfs-3g/
H A Drunlist.h2 * runlist.h - Exports for runlist handling. Originated from the Linux-NTFS project.
30 typedef runlist_element runlist; typedef
80 extern int ntfs_rl_truncate(runlist **arl, const VCN start_vcn);
82 extern int ntfs_rl_sparse(runlist *rl);
83 extern s64 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl);
H A Dlcnalloc.h28 #include "runlist.h"
41 extern runlist *ntfs_cluster_alloc(ntfs_volume *vol, VCN start_vcn, s64 count,
44 extern int ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl);
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsresize.c74 #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) in rl_set()
670 static int rl_items(runlist *rl) in rl_items()
687 static void dump_runlist(runlist *rl) in dump_runlist()
709 static void collect_resize_constraints(ntfs_resize_t *resize, runlist *rl) in collect_resize_constraints()
776 static void collect_relocation_info(ntfs_resize_t *resize, runlist *rl) in collect_relocation_info()
831 runlist *rl; in build_lcn_usage_bitmap()
860 err_exit("Corrupt runlist i in build_lcn_usage_bitmap()
[all...]
H A Dntfsmove.c254 * ntfs_debug_runlist_dump2 - Dump a runlist.
256 static int ntfs_debug_runlist_dump2(const runlist *rl, int abbr, char *prefix)
387 static runlist * find_unused(ntfs_volume *vol, s64 size, u64 loc in find_unused()
398 runlist *res = NULL; in find_unused()
658 // get size of runlist
660 // backup original runlist
663 // got to get the runlist out of this function
665 // check size of new runlist before allocating / moving
670 runlist *from; in move_datarun()
671 runlist *t in move_datarun()
[all...]
H A Dntfsundelete.c932 if (d->runlist) in free_file()
933 free(d->runlist); in free_file()
1312 data->runlist = ntfs_mapping_pairs_decompress(vol, rec, NULL); in get_data()
1313 if (!data->runlist) { in get_data()
1486 rl = data->runlist; in calc_percentage()
1488 ntfs_log_verbose("File has no runlist, hence no data." in calc_percentage()
1494 ntfs_log_verbose("File has an empty runlist, hence no " in calc_percentage()
1647 if ((!d->runlist) || (d->runlist[0].length <= 0)) { in dump_record()
1650 for (i = 0; d->runlist[ in dump_record()
[all...]
H A Dntfsundelete.h30 #include "runlist.h"
93 runlist_element *runlist; /* Decoded data runs */ member
H A Dmkntfs.c132 #include "runlist.h"
190 static runlist *g_rl_mft = NULL;
191 static runlist *g_rl_mft_bmp = NULL;
192 static runlist *g_rl_mftmirr = NULL;
193 static runlist *g_rl_logfile = NULL;
194 static runlist *g_rl_boot = NULL;
195 static runlist *g_rl_bad = NULL;
881 * ntfs_rlwrite - Write to disk the clusters contained in the runlist @rl
894 static s64 ntfs_rlwrite(struct ntfs_device *dev, const runlist *rl, in ntfs_rlwrite()
1040 static void deallocate_scattered_clusters(const runlist *r
[all...]
H A Dcluster.c53 runlist *runs; in cluster_find()
H A Dntfsck.c85 * --adjust-size -z: insert a sparse hole if the data_size is larger than the size marked in the runlist.
235 * Load the runlist of the <attr_type> attribute.
250 static runlist *load_runlist(ntfs_volume *rawvol, s64 offset_to_file_record, ATTR_TYPES attr_type, u32 size_of_file_record) in load_runlist()
333 static VCN get_last_vcn(runlist *rl) in get_last_vcn()
718 * It will load the MFT runlist and MFT/Bitmap runlist.
730 // Load the first segment of the $MFT/DATA runlist. in verify_mft_preliminary()
735 check_failed("Loading $MFT runlist failed. Trying $MFTMirr.\n"); in verify_mft_preliminary()
739 check_failed("Loading $MFTMirr runlist failed too. Aborting.\n"); in verify_mft_preliminary()
743 // todo: support loading the next runlist extent in verify_mft_preliminary()
[all...]
H A Dntfsclone.c89 #include "runlist.h"
633 static s64 is_critical_metadata(ntfs_walk_clusters_ctx *image, runlist *rl)
1354 static void clone_logfile_parts(ntfs_walk_clusters_ctx *image, runlist *rl)
1503 static void copy_wipe_mft(ntfs_walk_clusters_ctx *image, runlist *rl)
1586 static void copy_wipe_i30(ntfs_walk_clusters_ctx *image, runlist *rl)
1660 static void dump_clusters(ntfs_walk_clusters_ctx *image, runlist *rl)
1687 runlist *rl;
1731 err_exit("Corrupt runlist in inode %lld attr %x LCN "
2515 runlist *rl;
H A Dntfsinfo.c1111 runlist *rl = ntfs_mapping_pairs_decompress(vol, attr, NULL); in ntfs_dump_attr_security_descriptor()
1133 "decompress runlist\n"); in ntfs_dump_attr_security_descriptor()
1431 runlist *rl; in ntfs_dump_attribute_header()
1435 runlist *rlc = rl; in ntfs_dump_attribute_header()
1464 ntfs_log_error("Error: couldn't decompress runlist\n"); in ntfs_dump_attribute_header()
2095 runlist *rl; in ntfs_dump_attr_ea()
H A Dntfscluster.c393 runlist *runs; in dump_file()
H A Dntfswipe.c109 runlist_element *runlist; /* Decoded data runs */ member
837 ntfs_log_error("Can't map runlist (inode %lld)\n", in wipe_attr_tail()
1300 ntfs_log_error("Can't map runlist for $INDEX_ALLOCATION " in wipe_directory()
1607 if (d->runlist != NULL) in free_file()
1608 free(d->runlist); in free_file()
/third_party/ntfs-3g/libntfs-3g/
H A Dlcnalloc.c43 #include "runlist.h"
209 * On success return a runlist describing the allocated cluster(s).
235 runlist *ntfs_cluster_alloc(ntfs_volume *vol, VCN start_vcn, s64 count, in ntfs_cluster_alloc()
243 runlist *rl = NULL, *trl; in ntfs_cluster_alloc()
264 /* Return empty runlist if @count == 0 */ in ntfs_cluster_alloc()
357 if ((rlpos + 2) * (int)sizeof(runlist) >= rlsize) { in ntfs_cluster_alloc()
533 /* Add runlist terminator element. */ in ntfs_cluster_alloc()
559 /* Add runlist terminator element. */ in ntfs_cluster_alloc()
572 * ntfs_cluster_free_from_rl - free clusters from runlist
574 * @rl: runlist fro
[all...]
H A Drunlist.c2 * runlist.c - Run list handling code. Originated from the Linux-NTFS project.
53 * ntfs_rl_mm - runlist memmove
70 * ntfs_rl_mc - runlist memory copy
90 * @rl: original runlist
91 * @old_size: number of runlist elements in the original runlist @rl
92 * @new_size: number of runlist elements we need space for
115 * Extend a runlist by some entry count
116 * The runlist may have to be reallocated
118 * Returns the reallocated runlist
[all...]
H A Dattrib.c59 #include "runlist.h"
151 runlist *rl; in ntfs_get_attribute_value()
197 /* Decompress the mapping pairs array into a runlist. */ in ntfs_get_attribute_value()
205 * reach the last cluster in the runlist as the buffer will in ntfs_get_attribute_value()
214 /* Now load all clusters in the runlist into b. */ in ntfs_get_attribute_value()
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 in ntfs_attr_map_runlist()
[all...]
H A Ddir.c2107 runlist *rl; in ntfs_delete()
2113 ntfs_log_error("Failed to decompress runlist. " in ntfs_delete()

Completed in 26 milliseconds