From owner-freebsd-hackers@freebsd.org Sun Jul 14 04:57:14 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB19115D7F7B for ; Sun, 14 Jul 2019 04:57:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9A9D87EC3 for ; Sun, 14 Jul 2019 04:57:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82f.google.com with SMTP id h18so12365301qtm.9 for ; Sat, 13 Jul 2019 21:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H4OFV/JzoV0N1giIVXz+/cjTh4mcmn4RBhEjltdSJ+Q=; b=PgCkrjjq86+QzsidmCeOL2qlJFwewpHMDtQR1uy8KaYE8uq+8eMGETju/hQhsKqvJb Vl1O4soE9Qsdao1aTL8gitsYyXdnRU5dvnxAh7OcLt2RK96ezfEMKhqRE841JCgT8iMP 079zMiseY7r8HjiP3wD0DoyaNZH/NfdzTzANdCVQcV2YfCzhHMECi6o1OpJ1NtV2GUbp nXNNrZ7Gc0uc2p5h4AHLuQ5v/hixkMpbmSbw3imY9whton74bbItP5CV0l4aUQtJmXwr IF21blsNvcqDDCaazD5DMPt8K8+KnrkYY8N2HywaCGE+JjFijSo+MMlGrXFM8rBwHPQ+ WWsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H4OFV/JzoV0N1giIVXz+/cjTh4mcmn4RBhEjltdSJ+Q=; b=NA6/EiyWO3cc9Vzvn6qPDwLJJP2pe6JU2lcW4CyjCYBnEG2h/n6DVDQNMaXjBqnnFd YREPmDIiUQH/R8udoxZpymHHbTYL7AbZ+E7kZYCv6+hSIGmPpoY6ZRxv0j3DUrG2HJI+ A8znRumUiV5USykwfjdBqlBKnqbfLnJxEAiVynnh0FWYM8HFWxrfINKlaxI12ENW2m7P y4lRctCxHkfTT6Jcl+44QIyNH/9LCJmhrEu0QixgXvtjdGOWu+kObNGClEX3I5isiJ9X y1jOA4r/S19GgupM0tHL8HWzWBsDgLlHB0oIbscfQb1p/ybyMnnbOBtO/tP+xihcapxK lQaQ== X-Gm-Message-State: APjAAAW3IKOsm3Rtx4AxDE3b6dd8Xk+UEg0xbO0nA7EsvfvsL7aGoE2y z8BDNysLH7edmrZI6rdzjPb4Q622H1fQeVHqAQU= X-Google-Smtp-Source: APXvYqzKFqlsyN5a7H2HTol6M6f9wYQDxRkWcTuYJjBmL9a8zHZ4TZLmfeTVPrxkKQiInQ0/HnoYENlNh39GdXIoaaw= X-Received: by 2002:aed:34a6:: with SMTP id x35mr12875136qtd.187.1563080232114; Sat, 13 Jul 2019 21:57:12 -0700 (PDT) MIME-Version: 1.0 References: <13de3cde-185b-a986-cbce-6ad984792952@selasky.org> <883fbfcf-cac6-99a9-cb6f-43e413be9bb0@selasky.org> In-Reply-To: From: Warner Losh Date: Sat, 13 Jul 2019 22:56:59 -0600 Message-ID: Subject: Re: 4k sector support (not good?) To: Zaphod Beeblebrox Cc: Hans Petter Selasky , FreeBSD Hackers X-Rspamd-Queue-Id: B9A9D87EC3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=PgCkrjjq X-Spamd-Result: default: False [-4.46 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.56)[0.564,0]; IP_SCORE(-3.02)[ip: (-9.40), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.44), country: US(-0.06)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[f.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_HAS_QUESTION(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2019 04:57:14 -0000 On Sat, Jul 13, 2019, 10:34 PM Zaphod Beeblebrox wrote: > > So... you're saying that if I gpart create -s GPT on a disk with 4k > sectors, it should do the right thing and just work? > > Keep in mind, I don't care what the BIOS thinks... I only care what > FreeBSD sees when it comes online. > Yes. Warner On Sun, Jul 14, 2019 at 12:09 AM Warner Losh wrote: > >> >> >> On Sat, Jul 13, 2019, 10:03 PM Warner Losh wrote: >> >>> >>> >>> On Sat, Jul 13, 2019, 9:59 PM Zaphod Beeblebrox >>> wrote: >>> >>>> Wait... are you saying that our gpart isn't properly able to label a 4k >>>> sector disk? >>>> >>> >>> There are competing notions about what is right... >>> >> >> For MBR disks. Apple has one standard, which is what the patch is for. >> Those disks won't necessarily work on other BIOSes. GPT just works today... >> >>