Lines Matching defs:size

94 "  3)  do not make it smaller than the new NTFS filesystem size\n"
160 s64 size;
208 s64 new_volume_size; /* in clusters; 0 = --info w/o --size */
345 " -i, --info Estimate the smallest shrunken size or the smallest\n"
346 " expansion size\n"
347 " -m, --info-mb-only Estimate the smallest shrunken size possible,\n"
348 " output size in MB only\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"
416 * Convert a user-supplied string into a size. Without any suffix the number
422 s64 size;
426 size = strtoll(s, &suffix, 10);
427 if (size <= 0 || errno == ERANGE)
428 err_exit("Illegal new volume size\n");
432 return size;
455 size *= prefix_kind;
458 size *= prefix_kind;
461 size *= prefix_kind;
467 return size;
494 { "size", required_argument, NULL, 's' },
584 "cannot be used with --size.\n");
696 * Take the number of clusters in the volume and calculate the size of $Bitmap.
697 * The size must be always a multiple of 8 bytes.
801 "a different size.\n");
950 if (a->size > pos)
951 err_exit("$Bitmap size is smaller than expected"
953 (long long)a->size, (long long)pos);
960 if (a->size <= pos)
1529 /* Beware of MFT fragmentation when the target size is too small */
1636 attribute, instead check for the real size/space */
1647 ntfs_log_verbose("Old mp size : %d\n", l);
1648 ntfs_log_verbose("New mp size : %d\n", mp_size);
2361 printf("Estimating smallest shrunken size supported ...\n");
2382 for (; cluster < bm->size << 3; cluster++)
2463 * per cluster of the shrunken volume. Also it must be a of 8 bytes in size.
2496 resize->lcn_bitmap.size = bm_bsize;
2508 s64 bm_bsize, size;
2551 size = ntfs_rl_pwrite(vol, rl, 0, 0, bm_bsize, resize->lcn_bitmap.bm);
2552 if (bm_bsize != size) {
2553 if (size == -1)
2556 (long long)size, (long long)bm_bsize);
2666 * Shrink the $BadClus file to match the new volume size.
2683 * Shrink the $Bitmap file to match the new volume size.
2733 /* Determine lcn bitmap byte size and allocate it. */
2734 bm->size = rounded_up_division(nr_clusters, 8);
2736 bm->bm = ntfs_calloc(bm->size);
2812 * Set the backup boot sector, if the target size is
2814 * suffix and is a multiple of the sector size.
2816 * the partition size is already defined or it will be
2842 * Print the volume size in bytes and decimal megabytes.
2952 err_exit("Cluster size %u is too large!\n",
2967 printf("Cluster size : %u bytes\n",
2969 print_vol_size("Current volume size",
3031 err_exit("New size can't be less than the space already"
3039 "shrunken volume size supported.\n");
3077 * if the expanded size is a multiple of cluster size, and big
3219 * Get the size allocated to the unnamed data of some inode
3227 s64 size;
3229 size = 0;
3230 /* get the size of unnamed $DATA */
3233 size = sle64_to_cpu(a->allocated_size);
3234 if (!size) {
3235 err_printf("Bad record %lld, could not get its size\n",
3238 return (size);
3439 * the extra space must be a multiple of cluster size
3476 /* the new size must be bigger */
3491 /* read the first MFT record, to get the MFT size */
3493 /* read the 6th MFT record, to get the $Boot size */
3501 * When evaluating the minimal size, the bitmap
3502 * size must be adapted to the minimal size :
3519 /* byte size must be a multiple of 8 */
3572 printf("and you may add a multiple of %ld bytes to this size.\n",
3574 printf("The minimum NTFS volume size is %lld bytes\n",
3655 err_printf("Failed to rewrite the bootsector (size=0)\n");
3694 err_printf("Failed to write the bitmap (size=0)\n");
3932 attribute, instead check for the real size/space */
3943 ntfs_log_verbose("Old mp size : %d\n", l);
3944 ntfs_log_verbose("New mp size : %d\n", mp_size);
4175 /* do not change the initialized size */
4370 err_printf("Failed to read the backup bootsector (size=0)\n");
4482 * volume size and metadata.
4539 s64 new_size = 0; /* in clusters; 0 = --info w/o --size */
4585 err_exit("Couldn't get device size (%lld)!\n",
4589 print_vol_size("Current device size", device_size);
4592 err_exit("Current NTFS volume size is bigger than the device "
4593 "size!\nCorrupt partition table or incorrect device "
4602 volume size thus we have to reserve space for it. */
4609 print_vol_size("New volume size ", vol_size(vol, new_size));
4611 err_exit("New size can't be bigger than the device size"
4613 "enlarge the device size by e.g. fdisk.\n");
4619 printf("Nothing to do: NTFS volume size is already OK.\n");
4626 /* This is also true if --info was used w/o --size (new_size = 0) */