Re: [PATCH 4/4 v4] brd: Request from fdisk 4k alignment

From: Martin K. Petersen
Date: Thu Jan 08 2015 - 10:37:48 EST


>>>>> "Boaz" == Boaz Harrosh <boaz@xxxxxxxxxxxxx> writes:

Boaz> Because of the direct_access() API which returns a PFN. partitions
Boaz> better start on 4K boundary, else offset ZERO of a partition will
Boaz> not be aligned and blk_direct_access() will fail the call.

Boaz> By setting blk_queue_physical_block_size(PAGE_SIZE) we can
Boaz> communicate this to fdisk and friends.

Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/