Home
last modified time | relevance | path

Searched refs:vol (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/ntfs-3g/libntfs-3g/
H A Dvolume.c246 * @vol: ntfs volume whose $MFT to load
248 * Load $MFT from @vol and setup @vol with it. After calling this function the
249 * volume @vol is ready for use by all read access functions provided by the
254 static int ntfs_mft_load(ntfs_volume *vol) in ntfs_mft_load() argument
264 vol->mft_ni = ntfs_inode_allocate(vol); in ntfs_mft_load()
265 mb = ntfs_malloc(vol->mft_record_size); in ntfs_mft_load()
266 if (!vol->mft_ni || !mb) { in ntfs_mft_load()
270 vol in ntfs_mft_load()
448 ntfs_mftmirr_load(ntfs_volume *vol) ntfs_mftmirr_load() argument
506 ntfs_volume *vol; ntfs_volume_startup() local
678 ntfs_volume_check_logfile(ntfs_volume *vol) ntfs_volume_check_logfile() argument
738 ntfs_hiberfile_open(ntfs_volume *vol) ntfs_hiberfile_open() argument
796 ntfs_volume_check_hiberfile(ntfs_volume *vol, int verbose) ntfs_volume_check_hiberfile() argument
866 fix_txf_data(ntfs_volume *vol) fix_txf_data() argument
941 ntfs_volume *vol; ntfs_device_mount() local
1343 ntfs_set_shown_files(ntfs_volume *vol, BOOL show_sys_files, BOOL show_hid_files, BOOL hide_dot_files) ntfs_set_shown_files() argument
1371 ntfs_set_ignore_case(ntfs_volume *vol) ntfs_set_ignore_case() argument
1419 ntfs_volume *vol; ntfs_mount() local
1467 ntfs_umount(ntfs_volume *vol, const BOOL force __attribute__((unused))) ntfs_umount() argument
1649 ntfs_version_is_supported(ntfs_volume *vol) ntfs_version_is_supported() argument
1689 ntfs_logfile_reset(ntfs_volume *vol) ntfs_logfile_reset() argument
1738 ntfs_volume_write_flags(ntfs_volume *vol, const le16 flags) ntfs_volume_write_flags() argument
1879 ntfs_volume_get_free_space(ntfs_volume *vol) ntfs_volume_get_free_space() argument
1914 ntfs_volume_rename(ntfs_volume *vol, const ntfschar *label, int label_len) ntfs_volume_rename() argument
[all...]
H A Dbootsect.c185 * @vol: ntfs_volume to setup
188 * Parse the ntfs bootsector @bs and setup the ntfs volume @vol with the
193 int ntfs_boot_sector_parse(ntfs_volume *vol, const NTFS_BOOT_SECTOR *bs) in ntfs_boot_sector_parse() argument
202 vol->sector_size = le16_to_cpu(bs->bpb.bytes_per_sector); in ntfs_boot_sector_parse()
203 vol->sector_size_bits = ffs(vol->sector_size) - 1; in ntfs_boot_sector_parse()
204 ntfs_log_debug("SectorSize = 0x%x\n", vol->sector_size); in ntfs_boot_sector_parse()
205 ntfs_log_debug("SectorSizeBits = %u\n", vol->sector_size_bits); in ntfs_boot_sector_parse()
228 if (vol->dev->d_ops->seek(vol in ntfs_boot_sector_parse()
[all...]
H A Dlcnalloc.c74 static void ntfs_cluster_update_zone_pos(ntfs_volume *vol, u8 zone, LCN tc) in ntfs_cluster_update_zone_pos() argument
79 ntfs_cluster_set_zone_pos(vol->mft_lcn, vol->mft_zone_end, in ntfs_cluster_update_zone_pos()
80 &vol->mft_zone_pos, tc); in ntfs_cluster_update_zone_pos()
82 ntfs_cluster_set_zone_pos(vol->mft_zone_end, vol->nr_clusters, in ntfs_cluster_update_zone_pos()
83 &vol->data1_zone_pos, tc); in ntfs_cluster_update_zone_pos()
85 ntfs_cluster_set_zone_pos(0, vol->mft_zone_start, in ntfs_cluster_update_zone_pos()
86 &vol->data2_zone_pos, tc); in ntfs_cluster_update_zone_pos()
95 static void update_full_status(ntfs_volume *vol, LC argument
171 bitmap_writeback(ntfs_volume *vol, s64 pos, s64 size, void *b, u8 *writeback) bitmap_writeback() argument
235 ntfs_cluster_alloc(ntfs_volume *vol, VCN start_vcn, s64 count, LCN start_lcn, const NTFS_CLUSTER_ALLOCATION_ZONES zone) ntfs_cluster_alloc() argument
578 ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl) ntfs_cluster_free_from_rl() argument
620 ntfs_cluster_free_basic(ntfs_volume *vol, s64 lcn, s64 count) ntfs_cluster_free_basic() argument
667 ntfs_cluster_free(ntfs_volume *vol, ntfs_attr *na, VCN start_vcn, s64 count) ntfs_cluster_free() argument
[all...]
H A Dmft.c63 * @vol: volume to read from
68 * Read @count mft records starting at @mref from volume @vol into buffer
80 * NOTE: @b has to be at least of size @count * vol->mft_record_size.
82 int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref, in ntfs_mft_records_read() argument
90 if (!vol || !vol->mft_na || !b || count < 0) { in ntfs_mft_records_read()
98 if (m + count > vol->mft_na->initialized_size >> in ntfs_mft_records_read()
99 vol->mft_record_size_bits) { in ntfs_mft_records_read()
103 (long long)vol->mft_na->initialized_size >> in ntfs_mft_records_read()
104 vol in ntfs_mft_records_read()
144 ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref, const s64 count, MFT_RECORD *b) ntfs_mft_records_write() argument
234 ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *m) ntfs_mft_record_check() argument
348 ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD **mrec, ATTR_RECORD **attr) ntfs_file_record_read() argument
401 ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *mrec) ntfs_mft_record_layout() argument
478 ntfs_mft_record_format(const ntfs_volume *vol, const MFT_REF mref) ntfs_mft_record_format() argument
548 ntfs_mft_bitmap_find_free_rec(ntfs_volume *vol, ntfs_inode *base_ni) ntfs_mft_bitmap_find_free_rec() argument
715 ntfs_mft_bitmap_extend_allocation_i(ntfs_volume *vol) ntfs_mft_bitmap_extend_allocation_i() argument
920 ntfs_mft_bitmap_extend_allocation(ntfs_volume *vol) ntfs_mft_bitmap_extend_allocation() argument
941 ntfs_mft_bitmap_extend_initialized(ntfs_volume *vol) ntfs_mft_bitmap_extend_initialized() argument
1036 ntfs_mft_data_extend_allocation(ntfs_volume *vol) ntfs_mft_data_extend_allocation() argument
1261 ntfs_mft_record_init(ntfs_volume *vol, s64 size) ntfs_mft_record_init() argument
1365 ntfs_mft_rec_init(ntfs_volume *vol, s64 size) ntfs_mft_rec_init() argument
1426 ntfs_mft_rec_alloc(ntfs_volume *vol, BOOL mft_data) ntfs_mft_rec_alloc() argument
1711 ntfs_mft_record_alloc(ntfs_volume *vol, ntfs_inode *base_ni) ntfs_mft_record_alloc() argument
1965 ntfs_mft_record_free(ntfs_volume *vol, ntfs_inode *ni) global() argument
[all...]
H A Dioctl.c89 static int fstrim_clusters(ntfs_volume *vol, LCN lcn, s64 length) in fstrim_clusters() argument
91 struct ntfs_device *dev = vol->dev; in fstrim_clusters()
97 range[0] = lcn << vol->cluster_size_bits; in fstrim_clusters()
98 range[1] = length << vol->cluster_size_bits; in fstrim_clusters()
138 static int fstrim_limits(ntfs_volume *vol, in fstrim_limits() argument
149 if (stat(vol->dev->d_name, &statbuf) == -1) { in fstrim_limits()
151 vol->dev->d_name); in fstrim_limits()
229 static inline LCN align_up(ntfs_volume *vol, LCN lcn, u64 granularity) in align_up() argument
233 aligned = (lcn << vol->cluster_size_bits) + granularity - 1; in align_up()
235 return (aligned >> vol in align_up()
238 align_down(ntfs_volume *vol, u64 count, u64 granularity) align_down() argument
255 fstrim(ntfs_volume *vol, void *data, u64 *trimmed) fstrim() argument
[all...]
H A Dattrib.c140 * @vol:
148 s64 ntfs_get_attribute_value(const ntfs_volume *vol, in ntfs_get_attribute_value() argument
156 if (!vol || !a || !b) { in ntfs_get_attribute_value()
198 rl = ntfs_mapping_pairs_decompress(vol, a, NULL); in ntfs_get_attribute_value()
216 if (total + (rl[i].length << vol->cluster_size_bits) >= in ntfs_get_attribute_value()
226 * rl[i].length << vol->cluster_size_bits, do the in ntfs_get_attribute_value()
239 + vol->cluster_size - 1) in ntfs_get_attribute_value()
240 >> vol->cluster_size_bits; in ntfs_get_attribute_value()
244 << vol->cluster_size_bits); in ntfs_get_attribute_value()
260 r = ntfs_pread(vol in ntfs_get_attribute_value()
382 ntfs_volume *vol = na->ni->vol; ntfs_attr_init() local
754 ntfs_volume *vol = na->ni->vol; ntfs_attr_map_whole_runlist() local
992 ntfs_volume *vol; ntfs_attr_pread_i() local
1246 ntfs_volume *vol; ntfs_attr_fill_zero() local
1306 ntfs_volume *vol = na->ni->vol; ntfs_attr_fill_hole() local
1853 ntfs_volume *vol; global() local
2432 ntfs_volume *vol; global() local
2830 ntfs_volume *vol; global() local
3069 ntfs_volume *vol; global() local
3680 ntfs_volume *vol; global() local
3845 ntfs_attr_find_in_attrdef(const ntfs_volume *vol, const ATTR_TYPES type) global() argument
3887 ntfs_attr_size_bounds_check(const ntfs_volume *vol, const ATTR_TYPES type, const s64 size) global() argument
3955 ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPES type, const ntfschar *name, int name_len) global() argument
4012 ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPES type) global() argument
5109 ntfs_volume *vol = na->ni->vol; global() local
5304 ntfs_volume *vol; global() local
5610 ntfs_volume *vol = na->ni->vol; global() local
6346 ntfs_volume *vol; global() local
6504 ntfs_volume *vol; global() local
[all...]
H A Ddir.c255 ntfs_volume *vol = dir_ni->vol; in ntfs_inode_lookup_by_name() local
285 case_sensitivity = (NVolCaseSensitive(vol) ? CASE_SENSITIVE : IGNORE_CASE); in ntfs_inode_lookup_by_name()
336 case_sensitivity, vol->upcase, vol->upcase_len); in ntfs_inode_lookup_by_name()
387 if (vol->cluster_size <= index_block_size) { in ntfs_inode_lookup_by_name()
388 index_vcn_size_bits = vol->cluster_size_bits; in ntfs_inode_lookup_by_name()
457 case_sensitivity, vol->upcase, vol->upcase_len); in ntfs_inode_lookup_by_name()
539 if (!NVolCaseSensitive(dir_ni->vol)) { in ntfs_inode_lookup_by_mbsname()
652 ntfs_pathname_to_inode(ntfs_volume *vol, ntfs_inode *parent, const char *pathname) ntfs_pathname_to_inode() argument
1105 ntfs_volume *vol; ntfs_readdir() local
1904 ntfs_delete(ntfs_volume *vol, const char *pathname, ntfs_inode *ni, ntfs_inode *dir_ni, const ntfschar *name, u8 name_len) ntfs_delete() argument
2581 ntfs_volume *vol; set_dos_name() local
2773 ntfs_volume *vol; ntfs_remove_ntfs_dos_name() local
[all...]
H A Dcompress.c714 ntfs_volume *vol; in ntfs_compressed_attr_pread() local
728 if (!na || !na->ni || !na->ni->vol || !b in ntfs_compressed_attr_pread()
772 vol = na->ni->vol; in ntfs_compressed_attr_pread()
792 start_vcn = (pos & ~cb_size_mask) >> vol->cluster_size_bits; in ntfs_compressed_attr_pread()
800 vol->cluster_size_bits; in ntfs_compressed_attr_pread()
802 nr_cbs = (end_vcn - start_vcn) << vol->cluster_size_bits >> in ntfs_compressed_attr_pread()
847 ofs += vcn << vol->cluster_size_bits; in ntfs_compressed_attr_pread()
913 (vcn << vol->cluster_size_bits) + in ntfs_compressed_attr_pread()
921 (long long)(vcn << vol in ntfs_compressed_attr_pread()
981 read_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, u32 to_read, char *inbuf) read_clusters() argument
1023 write_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, s32 to_write, const char *outbuf) write_clusters() argument
1071 ntfs_volume *vol; ntfs_comp_set() local
1242 ntfs_volume *vol; ntfs_compress_overwr_free() local
1456 ntfs_volume *vol; ntfs_compress_free() local
1675 ntfs_volume *vol; ntfs_compressed_pwrite() local
1876 ntfs_volume *vol; ntfs_compressed_close() local
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_volume.c115 VolumeContext *vol = ctx->priv; in init() local
117 vol->fdsp = avpriv_float_dsp_alloc(0); in init()
118 if (!vol->fdsp) in init()
121 return set_expr(&vol->volume_pexpr, vol->volume_expr, ctx); in init()
126 VolumeContext *vol = ctx->priv; in uninit() local
127 av_expr_free(vol->volume_pexpr); in uninit()
128 av_opt_free(vol); in uninit()
129 av_freep(&vol->fdsp); in uninit()
134 VolumeContext *vol in query_formats() local
213 volume_init(VolumeContext *vol) volume_init() argument
248 VolumeContext *vol = ctx->priv; set_volume() local
281 VolumeContext *vol = ctx->priv; config_output() local
313 VolumeContext *vol = ctx->priv; process_command() local
329 VolumeContext *vol = inlink->dst->priv; filter_frame() local
[all...]
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsfix.c110 ntfs_volume *vol; member
222 static int OLD_ntfs_volume_set_flags(ntfs_volume *vol, const le16 flags) in OLD_ntfs_volume_set_flags() argument
230 if (!vol) { in OLD_ntfs_volume_set_flags()
234 if (ntfs_file_record_read(vol, FILE_Volume, &m, NULL)) { in OLD_ntfs_volume_set_flags()
279 vol->flags = c->flags = flags; in OLD_ntfs_volume_set_flags()
280 if (ntfs_mft_record_write(vol, FILE_Volume, m)) { in OLD_ntfs_volume_set_flags()
295 static int set_dirty_flag(ntfs_volume *vol) in set_dirty_flag() argument
301 if (vol->flags & VOLUME_IS_DIRTY) in set_dirty_flag()
308 flags = vol->flags | VOLUME_IS_DIRTY; in set_dirty_flag()
309 if (!opt.no_action && OLD_ntfs_volume_set_flags(vol, flag in set_dirty_flag()
330 empty_journal(ntfs_volume *vol) empty_journal() argument
380 clear_badclus(ntfs_volume *vol) clear_badclus() argument
449 fix_mftmirr(ntfs_volume *vol) fix_mftmirr() argument
604 rewrite_upcase(ntfs_volume *vol, ntfs_attr *na) rewrite_upcase() argument
658 fix_upcase(ntfs_volume *vol) fix_upcase() argument
817 ntfs_volume *vol; short_mft_selfloc_condition() local
874 ntfs_volume *vol; attrlist_selfloc_condition() local
958 ntfs_volume *vol; self_mapped_selfloc_condition() local
1017 ntfs_volume *vol; spare_record_selfloc_condition() local
1053 ntfs_volume *vol; fix_selfloc_conditions() local
1181 fix_self_located_mft(ntfs_volume *vol) fix_self_located_mft() argument
1227 try_fix_boot(ntfs_volume *vol, char *full_bs, s64 read_sector, s64 fix_sectors, s32 sector_size) try_fix_boot() argument
1288 try_alternate_boot(ntfs_volume *vol, char *full_bs, s32 sector_size, s64 shown_sectors) try_alternate_boot() argument
1361 check_alternate_boot(ntfs_volume *vol) check_alternate_boot() argument
1443 ntfs_volume *vol; fix_startup() local
1557 ntfs_volume *vol; fix_mount() local
1614 ntfs_volume *vol; main() local
[all...]
H A Dntfsresize.c206 ntfs_volume *vol; member
617 static void print_advise(ntfs_volume *vol, s64 supp_lcn) in print_advise() argument
621 old_b = vol->nr_clusters * vol->cluster_size; in print_advise()
628 if (supp_lcn > vol->nr_clusters) { in print_advise()
635 new_b = supp_lcn * vol->cluster_size; in print_advise()
637 freed_b = (vol->nr_clusters - supp_lcn + 1) * vol->cluster_size; in print_advise()
802 print_advise(resize->vol, lcn + lcn_length - 1); in collect_relocation_info()
827 static void build_lcn_usage_bitmap(ntfs_volume *vol, ntfsck_ argument
912 walk_attributes(ntfs_volume *vol, ntfsck_t *fsck) walk_attributes() argument
933 compare_bitmaps(ntfs_volume *vol, struct bitmap *a) compare_bitmaps() argument
1057 build_allocation_bitmap(ntfs_volume *vol, ntfsck_t *fsck) build_allocation_bitmap() argument
1318 expand_attribute_runlist(ntfs_volume *vol, struct DELAYED *delayed) expand_attribute_runlist() argument
1613 ntfs_volume *vol; replace_attribute_runlist() local
1882 lseek_to_cluster(ntfs_volume *vol, s64 lcn) lseek_to_cluster() argument
1896 ntfs_volume *vol = resize->vol; copy_clusters() local
2204 ntfs_volume *vol = resize->vol; relocate_inode() local
2336 print_hint(ntfs_volume *vol, const char *s, struct llcn_t llcn) print_hint() argument
2358 ntfs_volume *vol = resize->vol; advise_on_resize() local
2431 ntfs_volume *vol = resize->vol; truncate_badclust_bad_attr() local
2470 ntfs_volume *vol = resize->vol; realloc_bitmap_data_attr() local
2511 ntfs_volume *vol = resize->vol; truncate_bitmap_data_attr() local
2572 lookup_data_attr(ntfs_volume *vol, MFT_REF mref, const char *aname, ntfs_attr_search_ctx **ctx) lookup_data_attr() argument
2611 check_bad_sectors(ntfs_volume *vol) check_bad_sectors() argument
2687 ntfs_volume *vol = resize->vol; truncate_bitmap_file() local
2752 ntfs_volume *vol = r->vol; update_bootsector() local
2855 print_disk_usage(ntfs_volume *vol, s64 nr_used_clusters) print_disk_usage() argument
2928 ntfs_volume *vol = NULL; mount_volume() local
2983 prepare_volume_fixup(ntfs_volume *vol) prepare_volume_fixup() argument
3044 check_cluster_allocation(ntfs_volume *vol, ntfsck_t *fsck) check_cluster_allocation() argument
3095 ntfs_volume *vol; global() member
3158 ntfs_volume *vol; get_unnamed_attr() local
3195 ntfs_volume *vol; read_and_get_attr() local
3250 ntfs_volume *vol; get_mft_bitmap() local
3445 can_expand(expand_t *expand, ntfs_volume *vol) can_expand() argument
3635 ntfs_volume *vol; write_bootsector() local
3668 ntfs_volume *vol; write_bitmap() local
3713 ntfs_volume *vol; copy_mftmirr() local
3768 ntfs_volume *vol; copy_boot() local
3834 delayed_expand(ntfs_volume *vol, struct DELAYED *delayed, struct progress_bar *progress) delayed_expand() argument
3906 ntfs_volume *vol; update_runlist() local
4078 ntfs_volume *vol; rebase_runlists_meta() local
4212 ntfs_volume *vol; rebase_inode() local
4278 ntfs_volume *vol; rebase_all_inodes() local
4353 ntfs_volume *vol; get_volume_data() local
4404 ntfs_volume *vol; really_expand() local
4490 ntfs_volume *vol; expand_to_beginning() local
4541 ntfs_volume *vol = NULL; main() local
[all...]
H A Dntfslabel.c238 static int change_serial(ntfs_volume *vol, u64 sector, le64 serial_number, in change_serial() argument
246 if ((ntfs_pread(vol->dev, sector << vol->sector_size_bits, in change_serial()
247 vol->sector_size, bs) == vol->sector_size)) { in change_serial()
251 memcpy(oldbs, bs, vol->sector_size); in change_serial()
254 same = !memcmp(oldbs, bs, vol->sector_size); in change_serial()
265 || (ntfs_pwrite(vol->dev, in change_serial()
266 sector << vol->sector_size_bits, in change_serial()
267 vol in change_serial()
279 set_new_serial(ntfs_volume *vol) set_new_serial() argument
320 print_serial(ntfs_volume *vol) print_serial() argument
348 print_label(ntfs_volume *vol, unsigned long mnt_flags) print_label() argument
375 change_label(ntfs_volume *vol, char *label) change_label() argument
415 ntfs_volume *vol; main() local
[all...]
H A Dntfsmove.c387 static runlist * find_unused(ntfs_volume *vol, s64 size, u64 loc in find_unused() argument
409 clus = vol->lcnbmp_na->allocated_size / bufsize; in find_unused()
415 bytes_read = ntfs_attr_pread(vol->lcnbmp_na, i*bufsize, in find_unused()
451 if (utils_cluster_in_use(vol, res->lcn + i)) { in find_unused()
500 IGNORE_CASE, ino->vol->upcase, ino->vol->upcase_len)) { in dont_move()
512 static int bitmap_alloc(ntfs_volume *vol, runlist_element *rl) in bitmap_alloc() argument
519 res = ntfs_bitmap_set_run(vol->lcnbmp_na, rl->lcn, rl->length); in bitmap_alloc()
530 static int bitmap_free(ntfs_volume *vol, runlist_element *rl) in bitmap_free() argument
537 res = ntfs_bitmap_clear_run(vol in bitmap_free()
548 data_copy(ntfs_volume *vol, runlist_element *from, runlist_element *to) data_copy() argument
601 move_runlist(ntfs_volume *vol, runlist_element *from, runlist_element *to) move_runlist() argument
667 move_datarun(ntfs_volume *vol, ntfs_inode *ino, ATTR_RECORD *rec, runlist_element *run, u64 loc, int flags) move_datarun() argument
759 move_attribute(ntfs_volume *vol, ntfs_inode *ino, ATTR_RECORD *rec, u64 loc, int flags) move_attribute() argument
805 move_file(ntfs_volume *vol, ntfs_inode *ino, u64 loc, int flags) move_file() argument
868 ntfs_volume *vol; main() local
[all...]
H A Dntfsfallocate.c123 static void err_exit(ntfs_volume *vol, const char *fmt, ...) in err_exit() argument
132 if (vol && ntfs_umount(vol, 0)) in err_exit()
426 static void free_common(ntfs_volume *vol, runlist_element *brl, s64 blth, in free_common() argument
435 if (ntfs_bitmap_clear_run(vol->lcnbmp_na, in free_common()
456 ntfs_volume *vol; in ntfs_restore_rl() local
458 vol = na->ni->vol; in ntfs_restore_rl()
467 free_common(vol, brl, brl->length, grl, in ntfs_restore_rl()
474 free_common(vol, br in ntfs_restore_rl()
492 ntfs_volume *vol; ntfs_inner_zero() local
543 ntfs_volume *vol; ntfs_merge_allocation() local
591 ntfs_volume *vol; ntfs_inner_allocation() local
820 ntfs_volume *vol; main() local
[all...]
H A Dutils.c259 ntfs_volume *vol; in utils_mount_volume() local
284 vol = ntfs_mount(device, flags); in utils_mount_volume()
285 if (!vol) { in utils_mount_volume()
306 if (vol->flags & VOLUME_IS_DIRTY) { in utils_mount_volume()
309 ntfs_umount(vol, FALSE); in utils_mount_volume()
315 return vol; in utils_mount_volume()
531 ntfs_volume *vol; in utils_inode_get_name() local
545 vol = inode->vol; in utils_inode_get_name()
603 inode = ntfs_inode_open(vol, paren in utils_inode_get_name()
644 utils_attr_get_name(ntfs_volume *vol, ATTR_RECORD *attr, char *buffer, int bufsize) utils_attr_get_name() argument
727 utils_cluster_in_use(ntfs_volume *vol, long long lcn) utils_cluster_in_use() argument
790 utils_mftrec_in_use(ntfs_volume *vol, MFT_REF mref) utils_mftrec_in_use() argument
832 __metadata(ntfs_volume *vol, u64 num) __metadata() argument
858 ntfs_volume *vol; utils_is_metadata() local
968 mft_get_search_ctx(ntfs_volume *vol) mft_get_search_ctx() argument
[all...]
H A Dntfscluster.c279 static int info(ntfs_volume *vol) in info() argument
292 m_ctx = mft_get_search_ctx(vol); in info()
308 rl = ntfs_mapping_pairs_decompress(vol, rec, NULL); in info()
328 cb = vol->cluster_size_bits; in info()
329 sb = vol->sector_size_bits; in info()
332 fc = vol->nr_clusters-mc-uc; in info()
337 a = vol->sector_size; in info()
338 b = vol->cluster_size; in info()
340 d = vol->nr_clusters << cb; in info()
341 e = vol in info()
387 dump_file(ntfs_volume *vol, ntfs_inode *ino) dump_file() argument
484 ntfs_volume *vol; main() local
[all...]
H A Dntfswipe.c474 * @vol: An ntfs volume obtained from ntfs_mount
484 static s64 wipe_unused(ntfs_volume *vol, int byte, enum action act) in wipe_unused() argument
491 if (!vol || (byte < 0)) in wipe_unused()
495 buffer = malloc(vol->cluster_size); in wipe_unused()
500 memset(buffer, byte, vol->cluster_size); in wipe_unused()
503 for (i = 0; i < vol->nr_clusters; i++) { in wipe_unused()
504 if (utils_cluster_in_use(vol, i)) { in wipe_unused()
511 result = ntfs_pwrite(vol->dev, vol->cluster_size * i, vol in wipe_unused()
543 wipe_unused_fast(ntfs_volume *vol, int byte, enum action act) wipe_unused_fast() argument
652 wipe_compressed_attribute(ntfs_volume *vol, int byte, enum action act, ntfs_attr *na) wipe_compressed_attribute() argument
772 wipe_attribute(ntfs_volume *vol, int byte, enum action act, ntfs_attr *na) wipe_attribute() argument
820 ntfs_volume *vol = ni->vol; wipe_attr_tail() local
869 wipe_tails(ntfs_volume *vol, int byte, enum action act) wipe_tails() argument
956 wipe_mft(ntfs_volume *vol, int byte, enum action act) wipe_mft() argument
1095 wipe_index_allocation(ntfs_volume *vol, int byte, enum action act __attribute__((unused)), ntfs_attr *naa, ntfs_attr *nab, u32 indx_record_size) wipe_index_allocation() argument
1242 wipe_directory(ntfs_volume *vol, int byte, enum action act) wipe_directory() argument
1379 wipe_logfile(ntfs_volume *vol, int byte, enum action act __attribute__((unused))) wipe_logfile() argument
1490 wipe_pagefile(ntfs_volume *vol, int byte, enum action act __attribute__((unused))) wipe_pagefile() argument
2150 ntfs_volume *vol; main() local
[all...]
H A Dplaylog.c390 static int sanity_indx(ntfs_volume *vol, const char *buffer) in sanity_indx() argument
405 != (vol->indx_record_size - 24))) { in sanity_indx()
409 (long)(vol->indx_record_size - 24), in sanity_indx()
424 static char *read_raw(ntfs_volume *vol, const LOG_RECORD *logr) in read_raw() argument
460 && (ntfs_pread(vol->dev, lcn << clusterbits, in read_raw()
492 static int write_raw(ntfs_volume *vol, const LOG_RECORD *logr, in write_raw() argument
532 if (ntfs_pwrite(vol->dev, lcn << clusterbits, in write_raw()
547 static int write_mirr(ntfs_volume *vol, const LOG_RECORD *logr, in write_mirr() argument
562 lcn = ntfs_attr_vcn_to_lcn(vol->mftmirr_na, in write_mirr()
566 || (ntfs_pwrite(vol in write_mirr()
581 read_protected(ntfs_volume *vol, const LOG_RECORD *logr, u32 size, BOOL warn) read_protected() argument
629 write_protected(ntfs_volume *vol, const LOG_RECORD *logr, char *buffer, u32 size) write_protected() argument
797 adjust_high_vcn(ntfs_volume *vol, ATTR_RECORD *attr) adjust_high_vcn() argument
862 change_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length) change_resident() argument
916 change_resident_expect(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, const char *expected, u32 target, u32 length, ATTR_TYPES type) change_resident_expect() argument
969 change_index_value(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length) change_index_value() argument
1014 add_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length, u32 oldlength) add_resident() argument
1094 expand_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length, u32 oldlength) expand_resident() argument
1176 insert_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length) insert_resident() argument
1259 remove_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length) remove_resident() argument
1345 delete_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length, u32 oldlength) delete_resident() argument
1403 shrink_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length, u32 oldlength) shrink_resident() argument
1484 update_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer, const char *data, u32 target, u32 length) update_index() argument
1606 insert_index_allocation(ntfs_volume *vol, char *buffer, u32 offs) insert_index_allocation() argument
1783 create_indx(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) create_indx() argument
1825 redo_action37(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_action37() argument
1860 redo_add_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_add_index() argument
1923 redo_add_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_add_root_index() argument
2003 redo_create_file(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_create_file() argument
2056 redo_create_attribute(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_create_attribute() argument
2079 redo_delete_attribute(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_delete_attribute() argument
2101 redo_delete_file(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_delete_file() argument
2154 redo_delete_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_delete_index() argument
2214 redo_delete_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_delete_root_index() argument
2281 redo_force_bits(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_force_bits() argument
2405 redo_sizes(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_sizes() argument
2427 redo_update_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_index() argument
2449 redo_update_index_value(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_index_value() argument
2469 redo_update_mapping(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_mapping() argument
2557 redo_update_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_resident() argument
2626 redo_update_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_root_index() argument
2658 redo_update_root_vcn(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_root_vcn() argument
2686 redo_update_value(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_value() argument
2752 redo_update_vcn(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_update_vcn() argument
2776 redo_write_end(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_write_end() argument
2843 redo_write_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) redo_write_index() argument
2932 undo_add_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_add_index() argument
2994 undo_add_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_add_root_index() argument
3057 undo_create_attribute(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_create_attribute() argument
3079 undo_delete_attribute(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_delete_attribute() argument
3101 undo_delete_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_delete_index() argument
3168 undo_delete_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_delete_root_index() argument
3241 undo_create_file(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_create_file() argument
3293 undo_delete_file(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_delete_file() argument
3362 undo_force_bits(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_force_bits() argument
3475 undo_sizes(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_sizes() argument
3515 undo_update_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_index() argument
3537 undo_update_index_value(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_index_value() argument
3584 undo_update_vcn(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_vcn() argument
3608 undo_update_mapping(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_mapping() argument
3697 undo_update_resident(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_resident() argument
3763 undo_update_root_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_root_index() argument
3790 undo_update_root_vcn(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_root_vcn() argument
3818 undo_update_value(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_update_value() argument
3878 undo_write_end(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_write_end() argument
3945 undo_write_index(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) undo_write_index() argument
4096 distribute_redos(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) distribute_redos() argument
4282 play_one_redo(ntfs_volume *vol, const struct ACTION_RECORD *action) play_one_redo() argument
4502 play_redos(ntfs_volume *vol, const struct ACTION_RECORD *firstaction) play_redos() argument
4520 distribute_undos(ntfs_volume *vol, const struct ACTION_RECORD *action, char *buffer) distribute_undos() argument
4673 play_one_undo(ntfs_volume *vol, const struct ACTION_RECORD *action) play_one_undo() argument
4890 play_undos(ntfs_volume *vol, const struct ACTION_RECORD *lastaction) play_undos() argument
[all...]
H A Dntfscp.c80 ntfs_volume *vol; member
517 bufpos = pos & ((alctx->vol->cluster_size << 3) - 1); in examine_buf()
622 << alctx->vol->cluster_size_bits; in set_sizes()
665 if (ntfs_bitmap_set_run(alctx->vol->lcnbmp_na, in assign_runlist()
671 << alctx->vol->cluster_size_bits; in assign_runlist()
706 ntfs_volume *vol; in find_best_runs() local
713 vol = alctx->vol; in find_best_runs()
715 pos = vol->mft_zone_end; in find_best_runs()
716 br = vol in find_best_runs()
765 ntfs_volume *vol; preallocate() local
840 ntfs_volume *vol; main() local
[all...]
H A Dntfsinfo.c468 static void ntfs_dump_volume(ntfs_volume *vol) in ntfs_dump_volume() argument
471 printf("\tName of device: %s\n", vol->dev->d_name); in ntfs_dump_volume()
472 printf("\tDevice state: %lu\n", vol->dev->d_state); in ntfs_dump_volume()
473 printf("\tVolume Name: %s\n", vol->vol_name); in ntfs_dump_volume()
474 printf("\tVolume State: %lu\n", vol->state); in ntfs_dump_volume()
475 printf("\tVolume Flags: 0x%04x", (int)le16_to_cpu(vol->flags)); in ntfs_dump_volume()
476 if (vol->flags & VOLUME_IS_DIRTY) in ntfs_dump_volume()
478 if (vol->flags & VOLUME_MODIFIED_BY_CHKDSK) in ntfs_dump_volume()
481 printf("\tVolume Version: %u.%u\n", vol->major_ver, vol in ntfs_dump_volume()
752 ntfs_dump_attr_list(ATTR_RECORD *attr, ntfs_volume *vol) ntfs_dump_attr_list() argument
928 ntfs_dump_attr_object_id(ATTR_RECORD *attr,ntfs_volume *vol) ntfs_dump_attr_object_id() argument
1105 ntfs_dump_attr_security_descriptor(ATTR_RECORD *attr, ntfs_volume *vol) ntfs_dump_attr_security_descriptor() argument
1338 ntfs_dump_attribute_header(ntfs_attr_search_ctx *ctx, ntfs_volume *vol, struct RUNCOUNT *runcount) ntfs_dump_attribute_header() argument
2084 ntfs_dump_attr_ea(ATTR_RECORD *attr, ntfs_volume *vol) ntfs_dump_attr_ea() argument
2452 ntfs_volume *vol; main() local
[all...]
H A Dntfsck.c128 //static ntfs_volume vol;
313 // ntfs_mapping_pairs_decompress only use two values from vol. Just fake it. in load_runlist()
314 // todo: it will also use vol->major_ver if defined(DEBUG). But only for printing purposes. in load_runlist()
662 static void replay_log(ntfs_volume *vol __attribute__((unused))) in replay_log()
670 static void verify_mft_record(ntfs_volume *vol, s64 mft_num) in verify_mft_record() argument
687 buffer = ntfs_malloc(vol->mft_record_size); in verify_mft_record()
692 if (ntfs_attr_pread(vol->mft_na, mft_num*vol->mft_record_size, vol->mft_record_size, buffer) < 0) { in verify_mft_record()
697 check_file_record(buffer, vol in verify_mft_record()
766 check_volume(ntfs_volume *vol) check_volume() argument
791 reset_dirty(ntfs_volume *vol) reset_dirty() argument
818 ntfs_volume *vol; main() local
[all...]
H A Dntfsundelete.c1010 static void get_parent_name(struct filename* name, ntfs_volume* vol) in get_parent_name() argument
1017 if (!name || !vol) in get_parent_name()
1020 rec = calloc(1, vol->mft_record_size); in get_parent_name()
1027 mft_data = ntfs_attr_open(vol->mft_ni, AT_DATA, AT_UNNAMED, 0); in get_parent_name()
1033 if (ntfs_attr_pread(mft_data, vol->mft_record_size * inode_num, in get_parent_name()
1034 vol->mft_record_size, rec) < 1) { in get_parent_name()
1147 static int get_filenames(struct ufile *file, ntfs_volume* vol) in get_filenames() argument
1198 get_parent_name(name, vol); in get_filenames()
1250 * @vol: An ntfs volume obtained from ntfs_mount
1262 static int get_data(struct ufile *file, ntfs_volume *vol) in get_data() argument
1340 read_record(ntfs_volume *vol, long long record) read_record() argument
1438 calc_percentage(struct ufile *file, ntfs_volume *vol) calc_percentage() argument
1966 undelete_file(ntfs_volume *vol, long long inode) undelete_file() argument
2217 scan_disk(ntfs_volume *vol) scan_disk() argument
2349 copy_mft(ntfs_volume *vol, long long mft_begin, long long mft_end) copy_mft() argument
2434 handle_undelete(ntfs_volume *vol) handle_undelete() argument
2481 ntfs_volume *vol; main() local
[all...]
/third_party/ffmpeg/libavfilter/x86/
H A Daf_volume_init.c36 av_cold void ff_volume_init_x86(VolumeContext *vol) in ff_volume_init_x86() argument
39 enum AVSampleFormat sample_fmt = av_get_packed_sample_fmt(vol->sample_fmt); in ff_volume_init_x86()
42 if (EXTERNAL_SSE2(cpu_flags) && vol->volume_i < 32768) { in ff_volume_init_x86()
43 vol->scale_samples = ff_scale_samples_s16_sse2; in ff_volume_init_x86()
44 vol->samples_align = 8; in ff_volume_init_x86()
48 vol->scale_samples = ff_scale_samples_s32_sse2; in ff_volume_init_x86()
49 vol->samples_align = 4; in ff_volume_init_x86()
52 vol->scale_samples = ff_scale_samples_s32_ssse3_atom; in ff_volume_init_x86()
53 vol->samples_align = 4; in ff_volume_init_x86()
56 vol in ff_volume_init_x86()
[all...]
/third_party/ntfs-3g/include/ntfs-3g/
H A Dmft.h32 extern int ntfs_mft_records_read(const ntfs_volume *vol, const MFT_REF mref,
37 * @vol: volume to read from
41 * Read the mft record specified by @mref from volume @vol into buffer @b.
48 * NOTE: @b has to be at least of size vol->mft_record_size.
50 static __inline__ int ntfs_mft_record_read(const ntfs_volume *vol, in ntfs_mft_record_read() argument
56 ret = ntfs_mft_records_read(vol, mref, 1, b); in ntfs_mft_record_read()
61 extern int ntfs_mft_record_check(const ntfs_volume *vol, const MFT_REF mref,
64 extern int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
67 extern int ntfs_mft_records_write(const ntfs_volume *vol, const MFT_REF mref,
72 * @vol
85 ntfs_mft_record_write(const ntfs_volume *vol, const MFT_REF mref, MFT_RECORD *b) ntfs_mft_record_write() argument
[all...]
/third_party/ntfs-3g/src/
H A Dntfs-3g.c136 ((scx)->vol->secure_flags & (1 << SECURITY_DEFAULT) \
275 static s64 ntfs_get_nr_free_mft_records(ntfs_volume *vol) in ntfs_get_nr_free_mft_records() argument
277 ntfs_attr *na = vol->mftbmp_na; in ntfs_get_nr_free_mft_records()
297 scx->vol = ctx->vol; in ntfs_fuse_fill_security_context()
342 if (scx->vol->secure_flags & (1 << SECURITY_DEFAULT)) in ntfs_allowed_dir_access()
358 dir_ni2 = ntfs_pathname_to_inode(scx->vol, in ntfs_allowed_dir_access()
378 ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_dir_access()
427 dir_ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_real_dir_access()
453 dir_ni = ntfs_pathname_to_inode(ctx->vol, in get_parent_dir()
487 ntfs_volume *vol; ntfs_fuse_statfs() local
[all...]

Completed in 30 milliseconds

12345