Lines Matching defs:sector_size
190 long sector_size; /* -s, in bytes, power of 2, default is 512 bytes. */
334 opts2->sector_size = -1;
443 &opts2->sector_size))
1925 if (index_block_size < (u32)opts.sector_size) {
1932 opts.sector_size;
3087 if (opts.sector_size) {
3089 opts.num_sectors = sbuf.st_size / opts.sector_size;
3091 opts.num_sectors = ((s64)sbuf.st_blocks << 9) / opts.sector_size;
3097 opts.sector_size = 512;
3164 if (opts.sector_size < 0) {
3165 opts.sector_size = ntfs_device_sector_size_get(vol->u.dev);
3166 if (opts.sector_size < 0) {
3171 opts.sector_size = 512;
3175 if ((opts.sector_size - 1) & opts.sector_size) {
3180 if (opts.sector_size < 256 || opts.sector_size > 4096) {
3185 ntfs_log_debug("sector size = %ld bytes\n", opts.sector_size);
3187 if (ntfs_device_block_size_set(vol->u.dev, opts.sector_size))
3196 opts.sector_size);
3212 if (opts.sector_size < 512)
3213 i = 512 / opts.sector_size;
3285 volume_size = opts.num_sectors * opts.sector_size;
3301 if (vol->cluster_size < (u32)opts.sector_size)
3302 vol->cluster_size = opts.sector_size;
3326 if (vol->cluster_size < (u32)opts.sector_size) {
3331 if (vol->cluster_size > 128 * (u32)opts.sector_size) {
3363 * sector_size and num_sectors. And check both of these for consistency
3366 if ((vol->nr_clusters != ((opts.num_sectors * opts.sector_size) /
3368 (volume_size / opts.sector_size) != opts.num_sectors ||
3401 if (vol->mft_record_size < (u32)opts.sector_size)
3402 vol->mft_record_size = opts.sector_size;
3419 if (vol->indx_record_size < (u32)opts.sector_size)
3420 vol->indx_record_size = opts.sector_size;
3568 g_mftmirr_lcn = (opts.num_sectors * opts.sector_size >> 1)
3784 opts.sector_size;
3786 bw = mkntfs_write(g_vol->u.dev, g_buf, opts.sector_size);
3787 if (bw != opts.sector_size) {
3799 opts.sector_size, SEEK_CUR);
3930 * Write the first max(512, opts.sector_size) bytes from buf to the
3935 if (size < opts.sector_size)
3936 size = opts.sector_size;
3940 opts.sector_size - size, SEEK_SET) == (off_t)-1) {
4232 bs->bpb.bytes_per_sector = cpu_to_le16(opts.sector_size);
4234 opts.sector_size);