Home | History | Annotate | Download | only in block

Lines Matching refs:BDRV_SECTOR_SIZE

390     ret = raw_pread(bs, sector_num * BDRV_SECTOR_SIZE, buf,
391 nb_sectors * BDRV_SECTOR_SIZE);
392 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
479 ret = raw_pwrite(bs, sector_num * BDRV_SECTOR_SIZE, buf,
480 nb_sectors * BDRV_SECTOR_SIZE);
481 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
494 if ((uintptr_t) qiov->iov[i].iov_base % BDRV_SECTOR_SIZE) {
703 total_size = options->value.n / BDRV_SECTOR_SIZE;
713 if (ftruncate(fd, total_size * BDRV_SECTOR_SIZE) != 0) {
976 total_size = options->value.n / BDRV_SECTOR_SIZE;
989 else if (lseek(fd, 0, SEEK_END) < total_size * BDRV_SECTOR_SIZE)