• Home
  • Raw
  • Download

Lines Matching refs:sector_size

2753 	s64  bs_size = vol->sector_size;  in update_bootsector()
2757 bs = (NTFS_BOOT_SECTOR*)ntfs_malloc(vol->sector_size); in update_bootsector()
2820 && !(opt.bytes % vol->sector_size)) { in update_bootsector()
2822 - vol->sector_size, SEEK_SET) == (off_t)-1) in update_bootsector()
2836 return nr_clusters * v->cluster_size + v->sector_size; in vol_size()
3484 vol->sector_size, expand->mrec); in can_expand()
3485 if ((got != vol->sector_size) in can_expand()
3486 || memcmp(expand->bootsector,expand->mrec,vol->sector_size)) { in can_expand()
3550 (int)(vol->cluster_size/vol->sector_size)); in can_expand()
3552 (int)(vol->cluster_size/vol->sector_size)); in can_expand()
3571 (long long)(minimum_size + vol->sector_size)); in can_expand()
3644 bw = vol->sector_size; in write_bootsector()
3647 expand->new_sectors*vol->sector_size, in write_bootsector()
3648 vol->sector_size, expand->bootsector); in write_bootsector()
3649 if (bw == vol->sector_size) in write_bootsector()
3806 memcpy(buf, expand->bootsector, vol->sector_size); in copy_boot()
4350 s32 sector_size) in get_volume_data() argument
4360 expand->bootsector = (char*)ntfs_malloc(sector_size); in get_volume_data()
4364 br = ntfs_pread(dev, expand->new_sectors*sector_size, in get_volume_data()
4365 sector_size, expand->bootsector); in get_volume_data()
4366 if (br != sector_size) { in get_volume_data()
4376 sector_size_le = cpu_to_le16(sector_size); in get_volume_data()
4492 int sector_size; in expand_to_beginning() local
4501 sector_size = ntfs_device_sector_size_get(dev); in expand_to_beginning()
4502 if (sector_size <= 0) { in expand_to_beginning()
4503 sector_size = 512; in expand_to_beginning()
4505 sector_size); in expand_to_beginning()
4507 sector_size = 4096; in expand_to_beginning()
4509 sector_size); in expand_to_beginning()
4513 sector_size); in expand_to_beginning()
4519 vol = get_volume_data(&expand,dev,sector_size); in expand_to_beginning()
4582 device_size = ntfs_device_size_get(vol->dev, vol->sector_size); in main()
4583 device_size *= vol->sector_size; in main()
4603 if (opt.bytes > vol->sector_size) in main()
4604 new_size = (opt.bytes - vol->sector_size) / vol->cluster_size; in main()