From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 26 09:17:10 2021 Received: (at submit) by debbugs.gnu.org; 26 Nov 2021 14:17:11 +0000 Received: from localhost ([127.0.0.1]:59005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqc2I-000754-GN for submit@debbugs.gnu.org; Fri, 26 Nov 2021 09:17:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:51748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqXzH-0001xa-Mv for submit@debbugs.gnu.org; Fri, 26 Nov 2021 04:57:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqXzH-0006ot-Et for bug-parted@gnu.org; Fri, 26 Nov 2021 04:57:47 -0500 Received: from szxga08-in.huawei.com ([45.249.212.255]:2909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqXzE-0000U3-Sy for bug-parted@gnu.org; Fri, 26 Nov 2021 04:57:47 -0500 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4J0qq42Vznz1DJjM for ; Fri, 26 Nov 2021 17:54:56 +0800 (CST) Received: from kwepemm600010.china.huawei.com (7.193.23.86) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 26 Nov 2021 17:57:31 +0800 Received: from [10.174.179.176] (10.174.179.176) by kwepemm600010.china.huawei.com (7.193.23.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 26 Nov 2021 17:57:30 +0800 To: From: lixiaokeng Subject: bug: parted msdos type disk different from expect Message-ID: <443484a2-bd32-f77d-2e99-e8e052b4b9a0@huawei.com> Date: Fri, 26 Nov 2021 17:57:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.176] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600010.china.huawei.com (7.193.23.86) X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.255; envelope-from=lixiaokeng@huawei.com; helo=szxga08-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Nov 2021 09:17:08 -0500 Cc: linfeilong , "liuzhiqiang \(I\)" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) I parted a disk as: parted /dev/sdb -s mklabel msdos parted /dev/sdb -s mkpart primary 0cyl 64cyl The expected result: Number Start End Size Type File system Flags 1 1049kB 526MB 525MB primary Fault result: Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s Number Start End Size Type File system Flags 1 512B 16.7MB 16.7MB primary The fault result is cause by commit 61dd3d4: Use BLKSSZGET to get device sector size in _device_probe_geometry() From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 01 14:34:18 2021 Received: (at 52125) by debbugs.gnu.org; 1 Dec 2021 19:34:18 +0000 Received: from localhost ([127.0.0.1]:45711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msVMw-0003Cl-L8 for submit@debbugs.gnu.org; Wed, 01 Dec 2021 14:34:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msVMv-0003CY-Lj for 52125@debbugs.gnu.org; Wed, 01 Dec 2021 14:34:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638387257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QXlsAftYn8j/PflYCpnR2eeGyKaC59+kZMX+9PAfOjg=; b=GfnFlGKWG2KemWx5xHP7FypBESBjMwQEtmcHY5CXJxcnf8CXi1bInwd+NwnzC8YbBdZ4Cn cRbUikWPYkrp+yk6zkD3dgBejfnn2o9a3QduqbqXlUgGamdjbpVrYPy/WkCjVsPq95s08R CT3rszG9Or8LTpMXf48sUTHbgKTu4WM= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-504-AO0By0gjPZOeQmzH564qsA-1; Wed, 01 Dec 2021 14:34:16 -0500 X-MC-Unique: AO0By0gjPZOeQmzH564qsA-1 Received: by mail-pg1-f198.google.com with SMTP id z8-20020a6553c8000000b00324e0d208d3so11296161pgr.2 for <52125@debbugs.gnu.org>; Wed, 01 Dec 2021 11:34:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QXlsAftYn8j/PflYCpnR2eeGyKaC59+kZMX+9PAfOjg=; b=Q0z3uSDqi3XrVeIOShYs5YMf+hJY8yGAzyj0Ya/lU1TAgJqOh2wbquE+64jZ5UFC/8 t4LAkrM6U/lIbEL/vlpZ6/G2GnDHNGLUor6yA5IittXvmtzv1Boxng/G8/B73F0D23TR SP6jIsJsGjx5ve470+2CWtQj5SyKqgWZTU2XVT0A4bN5P4lT3ewsTrIoam0BE8EVk5az mSlrH3hhRh0lbqdcFbhMDXVuGDHH12y1mzEToy5D0u/XAYF3Npxeahl/GOt9JUCushl2 WbkWOOST21dfZ+/0nU6UqozbUHCkICM8iKWaRGU2BFWpc/KjACRUkJGGv5fkUcyMCCns PCvw== X-Gm-Message-State: AOAM530JrcwLz+rXBR+vv5U8Zv5pWo42Ga9VTgltOXu9lC9ZcQ6ZdC8n q5F/pJLSW1/uA9CD0gXeYhdeDlPSb/R8PIKCcralZGDGNqeg1+MUWxWkCGz167jkIFfXlqwSbbp se9EZxH1LbfRExGs= X-Received: by 2002:a17:903:10d:b0:142:6343:a48e with SMTP id y13-20020a170903010d00b001426343a48emr9821951plc.29.1638387255055; Wed, 01 Dec 2021 11:34:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUxuMdL4YgzatQ3LbMOn4PFqsVZ9yqCmZNTiGMB3T7nejJbOmIHpqRwogNU5bhmhI7/wWxzw== X-Received: by 2002:a17:903:10d:b0:142:6343:a48e with SMTP id y13-20020a170903010d00b001426343a48emr9821927plc.29.1638387254823; Wed, 01 Dec 2021 11:34:14 -0800 (PST) Received: from ohop.brianlane.com (c-73-157-26-10.hsd1.wa.comcast.net. [73.157.26.10]) by smtp.gmail.com with ESMTPSA id h128sm566077pfg.212.2021.12.01.11.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 11:34:14 -0800 (PST) Date: Wed, 1 Dec 2021 11:34:12 -0800 From: "Brian C. Lane" To: 52125-close@debbugs.gnu.org Subject: Re: bug#52125: bug: parted msdos type disk different from expect Message-ID: References: <443484a2-bd32-f77d-2e99-e8e052b4b9a0@huawei.com> MIME-Version: 1.0 In-Reply-To: <443484a2-bd32-f77d-2e99-e8e052b4b9a0@huawei.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bcl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52125 Cc: linfeilong , 52125@debbugs.gnu.org, "liuzhiqiang \(I\)" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, Nov 26, 2021 at 05:57:29PM +0800, lixiaokeng via Bug reports for the GNU Parted disk partition editor wrote: > I parted a disk as: > > parted /dev/sdb -s mklabel msdos > parted /dev/sdb -s mkpart primary 0cyl 64cyl > > The expected result: > Number Start End Size Type File system Flags > 1 1049kB 526MB 525MB primary > > Fault result: > Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s > > Number Start End Size Type File system Flags > 1 512B 16.7MB 16.7MB primary > > > The fault result is cause by commit 61dd3d4: > Use BLKSSZGET to get device sector size in _device_probe_geometry() I would strongly suggest that you don't use cyl as a unit. There is no good reason to be doing that in 2021. Brian -- Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart From unknown Sat Aug 16 18:44:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Dec 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator