Lines Matching refs:volume

9  * This utility will resize an NTFS volume without data loss.
63 #include "volume.h"
116 "This software has detected that the NTFS volume is already opened by another\n"
145 char *volume;
176 int outsider; /* num of clusters outside the volume */
318 " Resize an NTFS volume non-destructively, safely move any data if needed.\n"
321 " -s, --size SIZE Resize volume to SIZE[k|M|G] bytes\n"
335 " omitted then the NTFS volume will be enlarged to the DEVICE size.\n"
360 "NTFS volume.\n");
397 err_exit("Illegal new volume size\n");
474 if (!err && !opt.volume)
475 opt.volume = argv[optind-1];
526 if (opt.volume == NULL) {
635 * Take the number of clusters in the volume and calculate the size of $Bitmap.
726 s64 new_vol_size; /* (last LCN on the volume) + 1 */
821 printf("Outside of the volume reference"
922 "the middle of the volume.\n");
1531 s64 new_vol_size; /* (last LCN on the volume) + 1 */
1772 * the disk, we can work out by how much we can shrink the volume.
1848 * $Bitmap can overlap the end of the volume. Any bits in this region
1895 * per cluster of the shrunken volume. Also it must be a of 8 bytes in size.
2079 * Shrink the $BadClus file to match the new volume size.
2099 * Shrink the $Bitmap file to match the new volume size.
2185 * Print the volume size in bytes and decimal megabytes.
2223 * First perform some checks to determine if the volume is already mounted, or
2225 * the volume (load the metadata into memory).
2232 if (ntfs_check_if_mounted(opt.volume, &mntflag)) {
2233 perr_printf("Failed to check '%s' mount state", opt.volume);
2241 "You must 'umount' it first.\n", opt.volume);
2244 "You must 'umount' it first.\n", opt.volume);
2248 * volume at all. We will do the logfile emptying and dirty setting
2251 if (!(vol = ntfs_mount(opt.volume, opt.ro_flag | NTFS_MNT_FORENSIC))) {
2254 perr_printf("Opening '%s' as NTFS failed", opt.volume);
2256 printf(invalid_ntfs_msg, opt.volume);
2277 printf("Device name : %s\n", opt.volume);
2278 printf("NTFS volume version: %d.%d\n", vol->major_ver, vol->minor_ver);
2284 print_vol_size("Current volume size", vol_size(vol, vol->nr_clusters));
2292 * Set the volume's dirty flag and wipe the filesystem journal. When Windows
2302 perr_exit("Failed to set the volume dirty");
2315 /* last lcn for a filled up volume (no empty space) */
2347 "shrunken volume size supported.\n");
2367 "of the volume.\n", fsck->outsider);
2397 err_exit("Couldn't open volume '%s'!\n", opt.volume);
2407 err_exit("Current NTFS volume size is bigger than the device "
2414 /* Take the integer part: don't make the volume bigger than requested */
2418 volume size thus we have to reserve space for it. */
2423 print_vol_size("New volume size ", vol_size(vol, new_size));
2433 printf("Nothing to do: NTFS volume size is already OK.\n");