From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: SMR 512e drive firmware advertising misleading limits? [was: Re: [RFC PATCH 1/1] dm: add dust target] Date: Wed, 9 Jan 2019 09:29:13 -0500 Message-ID: <20190109142913.GA26563@redhat.com> References: <1546889483-6341-1-git-send-email-bgurney@redhat.com> <1546889483-6341-2-git-send-email-bgurney@redhat.com> <20190108001049.GM11315@octiron.msp.redhat.com> <20190108162314.GA16936@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Damien Le Moal Cc: John Dorminy , Joe Shimkus , "dm-devel@redhat.com" , "tjaskiew@redhat.com" , John Pittman , Alasdair G Kergon , Bryan Gurney List-Id: dm-devel.ids On Tue, Jan 08 2019 at 8:03pm -0500, Damien Le Moal wrote: > You may want to check against the physical_block_size, and not the logical. SMR > disks that are 512 e (512B logical and 4K physical) can handle reads in 512B > units but writes have to be 4K. These are exceptions though and kind of breaking > all LBA definitions known to men... This check on the physical_block_size can be > limited to setups where the underlying disk is SMR. Damien, this sounds like a serious issue with SMR firmware. If the 512e SMR drive cannot handle 512b writes then it has no business advertising 512B logical. It should be advertising 4K logical. What am I missing? Mike