From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from slmp-550-94.slc.westdc.net ([50.115.112.57]:42574 "EHLO slmp-550-94.slc.westdc.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751572AbaFVSbs convert rfc822-to-8bit (ORCPT ); Sun, 22 Jun 2014 14:31:48 -0400 Received: from c-75-70-18-61.hsd1.co.comcast.net ([75.70.18.61]:62510 helo=[192.168.1.145]) by slmp-550-94.slc.westdc.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1WymYN-002WIn-Me for linux-btrfs@vger.kernel.org; Sun, 22 Jun 2014 12:31:48 -0600 Content-Type: text/plain; charset=US-ASCII Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: btrfs on whole disk (no partitions) From: Chris Murphy In-Reply-To: Date: Sun, 22 Jun 2014 12:31:44 -0600 Message-Id: References: <2316027.LZEnVG8laK@xev> <6CA8020B-EB92-4A44-8AA5-3F69709F81F2@colorremedies.com> To: Btrfs BTRFS Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Jun 22, 2014, at 1:49 AM, Imran Geriskovan wrote: >> The 64KB Btrfs bootloader pad is 8 sector aligned, so for 512e AF disks >> there's no problem formatting the whole drive. The alignment problem >> actually happens when partitioning it, using old partition tools that don't >> align on 8 sector boundaries. There are some such tools still floating >> around. > > A 'somewhat' related question: > > So called Advanced Format drives has 4K physical sector size, > however they report 512B logical sector size. > > How does linux kernel access those drives? > 512B or 4K at a time? Does anyone know if blktrace will intercept the actual SCSI commands sent to the drive? Or is there a better utility to use for this? When I use it unfiltered, I'm not seeing SCSI write commands at all. This is the blktrace/blkparse for dd if=/dev/zero of=/dev/sda seek=430234064 count=8 oflag=direct https://docs.google.com/file/d/0B_2Asp8DGjJ9c3J0UXpzUEhNaGs/edit?pli=1 This is the blktrace/blkparse for dd if=/dev/zero of=/dev/sda bs=4096 seek=53779258 count=1 https://docs.google.com/file/d/0B_2Asp8DGjJ9MnEwU0hDNE45dHc/edit?pli=1 The dd command clearly shows a difference, but when I look at the ATA command set I'd expect the Linux SCSI layer to turn these dd commands into the same ATA command: basically a write start LBA and sector count. And the LBA and sector count can only be in 512 byte sector addresses because that's all a 512e type of AF disk understands. Chris Murphy