Lines Matching defs:volume
10 * This utility will resize an NTFS volume without data loss.
70 #include "volume.h"
80 #define CLEAN_EXIT 0 /* traditionnally volume is not closed, there must be a reason */
121 "This software has detected that the NTFS volume is already opened by another\n"
156 char *volume;
199 int outsider; /* num of clusters outside the volume */
342 " Resize an NTFS volume non-destructively, safely move any data if needed.\n"
349 " -s, --size SIZE Resize volume to SIZE[k|M|G] bytes\n"
365 " then the NTFS volume will be enlarged to the DEVICE size.\n"
390 "NTFS volume.\n");
428 err_exit("Illegal new volume size\n");
512 if (!err && !opt.volume)
513 opt.volume = argv[optind-1];
573 if (opt.volume == NULL) {
696 * Take the number of clusters in the volume and calculate the size of $Bitmap.
779 s64 new_vol_size; /* (last LCN on the volume) + 1 */
874 printf("Outside of the volume reference"
978 "the middle of the volume.\n");
2011 s64 new_vol_size; /* (last LCN on the volume) + 1 */
2269 * Should this fail, we can stop with no damage, the volume
2354 * the disk, we can work out by how much we can shrink the volume.
2377 * $Bitmap can overlap the end of the volume. Any bits in this region
2463 * per cluster of the shrunken volume. Also it must be a of 8 bytes in size.
2666 * Shrink the $BadClus file to match the new volume size.
2683 * Shrink the $Bitmap file to match the new volume size.
2842 * Print the volume size in bytes and decimal megabytes.
2885 * volume at all. We will do the logfile emptying and dirty setting
2888 if (!(myvol = ntfs_mount(opt.volume, opt.ro_flag | NTFS_MNT_FORENSIC)))
2892 perr_printf("Opening '%s' as NTFS failed", opt.volume);
2895 printf(invalid_ntfs_msg, opt.volume);
2921 * First perform some checks to determine if the volume is already mounted, or
2923 * the volume (load the metadata into memory).
2930 if (ntfs_check_if_mounted(opt.volume, &mntflag)) {
2931 perr_printf("Failed to check '%s' mount state", opt.volume);
2939 "You must 'umount' it first.\n", opt.volume);
2942 "You must 'umount' it first.\n", opt.volume);
2959 printf("Device name : %s\n", opt.volume);
2960 printf("NTFS volume version: %d.%d\n",
2969 print_vol_size("Current volume size",
2979 * Set the volume's dirty flag and wipe the filesystem journal. When Windows
2989 perr_exit("Failed to set the volume dirty");
3007 /* last lcn for a filled up volume (no empty space) */
3039 "shrunken volume size supported.\n");
3059 "of the volume.\n", fsck->outsider);
3080 * The volume cannot be mounted because the layout of data does
3081 * not match the volume parameters. The alignments of MFT entries
3082 * and index blocks may be different in the new volume and the old
3085 * metadata has been moved and the volume is opened.
3467 printf("Sectors allocated to volume : old %lld current %lld difference %lld\n",
3471 printf("Clusters allocated to volume : old %lld current %lld difference %lld\n",
3479 err_printf("Cannot expand volume : the partition has not been expanded\n");
3548 err_printf("Cannot expand volume without copying the data :\n");
3574 printf("The minimum NTFS volume size is %lld bytes\n",
3782 /* set the new volume parameters in the bootsector */
3875 * the volume has been reopened after expanding.
4345 * Get the old volume parameters from the backup bootsector
4391 err_printf("Could not get the old volume parameters "
4414 printf("Expanding a volume is an experimental new feature\n");
4435 /* the volume must be dirty, do not check */
4440 ntfs_log_verbose("Remounting the updated volume\n");
4479 * Expand a volume to beginning of partition
4482 * volume size and metadata.
4496 dev = ntfs_device_alloc(opt.volume, 0, &ntfs_device_default_io_ops,
4527 err_exit("Couldn't open volume '%s'!\n", opt.volume);
4580 err_exit("Couldn't open volume '%s'!\n", opt.volume);
4592 err_exit("Current NTFS volume size is bigger than the device "
4602 volume size thus we have to reserve space for it. */
4609 print_vol_size("New volume size ", vol_size(vol, new_size));
4619 printf("Nothing to do: NTFS volume size is already OK.\n");