Lines Matching refs:vol
128 //static ntfs_volume vol;
313 // ntfs_mapping_pairs_decompress only use two values from vol. Just fake it.
314 // todo: it will also use vol->major_ver if defined(DEBUG). But only for printing purposes.
662 static void replay_log(ntfs_volume *vol __attribute__((unused)))
670 static void verify_mft_record(ntfs_volume *vol, s64 mft_num)
687 buffer = ntfs_malloc(vol->mft_record_size);
692 if (ntfs_attr_pread(vol->mft_na, mft_num*vol->mft_record_size, vol->mft_record_size, buffer) < 0) {
697 check_file_record(buffer, vol->mft_record_size);
766 static void check_volume(ntfs_volume *vol)
774 nr_mft_records = vol->mft_na->initialized_size >>
775 vol->mft_record_size_bits;
779 verify_mft_record(vol, mft_num);
791 static int reset_dirty(ntfs_volume *vol)
795 if (!(vol->flags | VOLUME_IS_DIRTY))
800 flags = vol->flags & ~VOLUME_IS_DIRTY;
802 if (ntfs_volume_write_flags(vol, flags)) {
818 ntfs_volume *vol;
854 vol = ntfs_device_mount(dev, NTFS_MNT_RDONLY);
855 if (!vol) {
860 replay_log(vol);
862 if (vol->flags & VOLUME_IS_DIRTY)
865 check_volume(vol);
873 reset_dirty(vol);
876 ntfs_umount(vol, FALSE);