Lines Matching refs:sectorsize
2903 int sectorsize;
2906 sectorsize = hfsmp->hfs_logical_block_size;
2907 retval = (int)buf_bread(hfsmp->hfs_devvp, (daddr64_t)HFS_PRI_SECTOR(sectorsize), sectorsize, NOCRED, &bp);
2916 mdb = (HFSMasterDirectoryBlock *)(buf_dataptr(bp) + HFS_PRI_OFFSET(sectorsize));
2971 if (buf_meta_bread(hfsmp->hfs_devvp, hfsmp->hfs_alt_id_sector, sectorsize, NOCRED, &alt_bp) == 0) {
2972 bcopy(mdb, (char *)buf_dataptr(alt_bp) + HFS_ALT_OFFSET(sectorsize), kMDBSize);
3284 u_int32_t sectorsize;
3328 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKSIZE, (caddr_t)§orsize, 0, context)) {
3331 if (sectorsize != hfsmp->hfs_logical_block_size) {
3337 if ((sectorsize * sectorcnt) < newsize) {
3347 phys_sectorsize = sectorsize;
3354 if ((newsize <= oldsize) || (newsize % sectorsize) || (newsize % phys_sectorsize)) {
3512 hfsmp->hfs_logical_block_count = newsize / sectorsize;
3513 hfsmp->hfs_alt_id_sector = (hfsmp->hfsPlusIOPosOffset / sectorsize) +
3514 HFS_ALT_SECTOR(sectorsize, hfsmp->hfs_logical_block_count);