Lines Matching refs:vol
201 static ntfs_volume *vol = NULL;
329 if (vol)
330 ntfs_umount(vol,FALSE);
347 if (vol)
348 ntfs_umount(vol,FALSE);
649 s64 s = (s64)16384 - rl->vcn * vol->cluster_size;
651 s = rounded_up_division(s, vol->cluster_size);
719 if (vol->dev->d_ops->seek(dev, pos, SEEK_SET) == (off_t)-1)
761 /* vol is NULL if opt.restore_image is set */
771 csize = vol->cluster_size;
772 bytes_per_sector = vol->sector_size;
773 fd = vol->dev;
883 pos = (off_t)(lcn * vol->cluster_size);
885 if (vol->dev->d_ops->seek(vol->dev, pos, SEEK_SET) == (off_t)-1)
943 u32 csize = vol->cluster_size;
977 for (last_cl = cl = 0; cl <= (u64)vol->nr_clusters; cl++) {
1199 if (ntfs_rl_pwrite(vol, na->rl, 0, 0, na->data_size, indexa) != na->data_size)
1360 vcn = offset / image->ni->vol->cluster_size;
1400 ni.vol = vol; /* Hmm */
1521 mft_record_size = image->ni->vol->mft_record_size;
1522 csize = image->ni->vol->cluster_size;
1523 bytes_per_sector = image->ni->vol->sector_size;
1524 fd = image->ni->vol->dev;
1603 csize = image->ni->vol->cluster_size;
1604 bytes_per_sector = image->ni->vol->sector_size;
1605 fd = image->ni->vol->dev;
1611 indx_record_size = image->ni->vol->indx_record_size;
1710 if (!(rl = ntfs_mapping_pairs_decompress(vol, a, NULL)))
1865 count = ntfs_attr_pread(vol->lcnbmp_na, pos, NTFS_BUF_SIZE, bm);
1871 if (((vol->nr_clusters + 7) >> 3) > pos)
1991 ni->vol = volume;
2057 nr_clusters = vol->nr_clusters;
2093 lcn_bitmap.size = rounded_up_division(vol->nr_clusters + 1, 8);
2099 bitmap_file_data_fixup(vol->nr_clusters, &lcn_bitmap);
2178 if (!(vol = ntfs_mount(opt.volume, new_mntflag))) {
2201 vol = ntfs_mount(opt.volume,
2205 vol = ntfs_mount(opt.volume,
2208 Printf("... %s\n",(vol ? "Successful" : "Failed"));
2210 if (!vol)
2214 if (vol->flags & VOLUME_IS_DIRTY)
2218 if (NTFS_MAX_CLUSTER_SIZE < vol->cluster_size)
2220 (unsigned int)vol->cluster_size);
2222 Printf("NTFS volume version: %d.%d\n", vol->major_ver, vol->minor_ver);
2223 if (ntfs_version_is_supported(vol))
2227 (unsigned int)vol->cluster_size);
2229 volume_size(vol, vol->nr_clusters));
2464 device_size = ntfs_device_size_get(vol->dev, 1);
2471 if (device_size < vol->nr_clusters * vol->cluster_size)
2484 image_hdr.cluster_size = cpu_to_le32(vol->cluster_size);
2486 image_hdr.nr_clusters = cpu_to_sle64(vol->nr_clusters);
2522 if (!(ni = ntfs_inode_open(vol, FILE_BadClus)))
2616 ntfs_size = vol->nr_clusters * vol->cluster_size;
2682 walk_clusters(vol, &backup_clusters);
2685 print_disk_usage("", vol->cluster_size, vol->nr_clusters, image.inuse);
2687 check_dest_free_space(vol->cluster_size * image.inuse);
2697 nr_clusters_to_save = vol->nr_clusters;
2704 ntfs_umount(vol,FALSE);
2723 ntfs_umount(vol,FALSE);
2732 walk_clusters(vol, &backup_clusters);
2735 (long long)vol->mft_na->initialized_size >>
2736 vol->mft_record_size_bits);
2754 ntfs_umount(vol,FALSE);