Lines Matching defs:volume

83 #include "volume.h"
167 char *volume;
233 * stupidly used the volume version as the image version... )-: I hope NTFS
434 if (opt.volume)
436 opt.volume = argv[optind-1];
506 if (opt.volume == NULL) {
511 if (!opt.restore_image && !strcmp(opt.volume, "-")) {
1936 static void mft_record_write_with_same_usn(ntfs_volume *volume, ntfs_inode *ni)
1941 if (ntfs_mft_record_write(volume, ni->mft_no, ni->mrec))
1945 static void mft_inode_write_with_same_usn(ntfs_volume *volume, ntfs_inode *ni)
1949 mft_record_write_with_same_usn(volume, ni);
1956 mft_record_write_with_same_usn(volume, eni);
1960 static int walk_clusters(ntfs_volume *volume, struct ntfs_walk_cluster *walk)
1970 Printf("Scanning volume ...\n");
1972 last_mft_rec = (volume->mft_na->initialized_size >>
1973 volume->mft_record_size_bits) - 1;
1977 NVolSetNoFixupWarn(volume);
1991 ni->vol = volume;
1993 err = ntfs_file_record_read(volume, mref, &ni->mrec, NULL);
2007 mft_record_write_with_same_usn(volume, ni);
2017 if ((ni = ntfs_inode_open(volume, mref)) == NULL) {
2042 mft_inode_write_with_same_usn(volume, ni);
2074 * $Bitmap can overlap the end of the volume. Any bits in this region
2103 static s64 volume_size(ntfs_volume *volume, s64 nr_clusters)
2105 return nr_clusters * volume->cluster_size;
2137 print_volume_size("Image volume size ",
2170 * First perform some checks to determine if the volume is already mounted, or
2172 * the volume (load the metadata into memory).
2176 check_if_mounted(opt.volume, new_mntflag);
2178 if (!(vol = ntfs_mount(opt.volume, new_mntflag))) {
2182 perr_printf("Opening '%s' as NTFS failed", opt.volume);
2187 "not /dev/hda1)?\n", opt.volume);
2193 * volume improperly unmounted from Windows.
2201 vol = ntfs_mount(opt.volume,
2205 vol = ntfs_mount(opt.volume,
2216 err_exit(dirty_volume_msg, opt.volume);
2222 Printf("NTFS volume version: %d.%d\n", vol->major_ver, vol->minor_ver);
2228 print_volume_size("Current volume size",
2381 if (strcmp(opt.volume, "-") == 0) {
2389 if ((fd_in = open(opt.volume, O_RDONLY | O_BINARY)) == -1)
2472 err_exit("Current NTFS volume size is bigger than the device "
2654 perr_exit("Opening volume '%s' failed",
2719 opt.volume = opt.output;