Lines Matching defs:vol
279 static int info(ntfs_volume *vol)
292 m_ctx = mft_get_search_ctx(vol);
308 rl = ntfs_mapping_pairs_decompress(vol, rec, NULL);
328 cb = vol->cluster_size_bits;
329 sb = vol->sector_size_bits;
332 fc = vol->nr_clusters-mc-uc;
337 a = vol->sector_size;
338 b = vol->cluster_size;
340 d = vol->nr_clusters << cb;
341 e = vol->nr_clusters;
342 f = vol->nr_clusters >> cps;
343 g = vol->mft_na->initialized_size >> vol->mft_record_size_bits;
387 static int dump_file(ntfs_volume *vol, ntfs_inode *ino)
405 runs = ntfs_mapping_pairs_decompress(vol, rec, NULL);
446 utils_attr_get_name(ino->vol, attr, buffer, MAX_PATH);
484 ntfs_volume *vol;
501 vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY |
503 if (!vol)
514 opts.range_begin >>= (vol->cluster_size_bits - vol->sector_size_bits);
515 opts.range_end >>= (vol->cluster_size_bits - vol->sector_size_bits);
516 result = cluster_find(vol, opts.range_begin, opts.range_end, (cluster_cb*)&print_match, NULL);
524 result = cluster_find(vol, opts.range_begin, opts.range_end, (cluster_cb*)&print_match, NULL);
531 ino = ntfs_pathname_to_inode(vol, NULL,
536 ino = ntfs_pathname_to_inode(vol, NULL, opts.filename);
539 result = dump_file(vol, ino);
542 ino = ntfs_inode_open(vol, opts.inode);
544 result = dump_file(vol, ino);
554 result = cluster_find(vol, 0, LONG_MAX, (cluster_cb*)&find_last, &m);
556 ino = ntfs_inode_open(vol, m.inum);
558 result = dump_file(vol, ino);
572 result = info(vol);
576 ntfs_umount(vol, FALSE);