From unknown Sat Aug 16 19:20:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52125: bug: parted msdos type disk different from expect Resent-From: lixiaokeng Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Fri, 26 Nov 2021 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52125 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 52125@debbugs.gnu.org Cc: linfeilong , "liuzhiqiang \(I\)" X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.163793623127226 (code B ref -1); Fri, 26 Nov 2021 14:18:01 +0000 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 From: lixiaokeng 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-Mailman-Approved-At: Fri, 26 Nov 2021 09:17:08 -0500 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 unknown Sat Aug 16 19:20:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52125: bug: parted msdos type disk different from expect Resent-From: "Brian C. Lane" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Wed, 01 Dec 2021 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52125 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 52125-close@debbugs.gnu.org Cc: linfeilong , 52125@debbugs.gnu.org, "liuzhiqiang \(I\)" Received: via spool by 52125-submit@debbugs.gnu.org id=B52125.163838725812328 (code B ref 52125); Wed, 01 Dec 2021 19:35:02 +0000 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" 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-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 19:20:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: lixiaokeng Subject: bug#52125: closed (Re: bug#52125: bug: parted msdos type disk different from expect) Message-ID: References: <443484a2-bd32-f77d-2e99-e8e052b4b9a0@huawei.com> X-Gnu-PR-Message: they-closed 52125 X-Gnu-PR-Package: parted Reply-To: 52125@debbugs.gnu.org Date: Wed, 01 Dec 2021 19:35:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1638387303-12401-1" This is a multi-part message in MIME format... ------------=_1638387303-12401-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #52125: bug: parted msdos type disk different from expect which was filed against the parted package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 52125@debbugs.gnu.org. --=20 52125: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52125 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1638387303-12401-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 52125-close) by debbugs.gnu.org; 1 Dec 2021 19:34:19 +0000 Received: from localhost ([127.0.0.1]:45713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msVMw-0003Cn-Sl for submit@debbugs.gnu.org; Wed, 01 Dec 2021 14:34:19 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:53144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msVMv-0003CZ-QO for 52125-close@debbugs.gnu.org; Wed, 01 Dec 2021 14:34:18 -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-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-434-vm6ZPJnjP82qolgmLh-jUA-1; Wed, 01 Dec 2021 14:34:16 -0500 X-MC-Unique: vm6ZPJnjP82qolgmLh-jUA-1 Received: by mail-pg1-f199.google.com with SMTP id n22-20020a6563d6000000b0029261ffde9bso12650349pgv.22 for <52125-close@debbugs.gnu.org>; Wed, 01 Dec 2021 11:34:16 -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=jGjee5ks3Hutiaegn5pUtVXXc66o2QP2Y5/erQw19sUQ+jTD2bDhDj/9DpNRH4Kufr SxieK2CTnl9AzWkYe9GvZctmlZGDeI7rogh9jmy2wEw2R50RhO8bqJ7VgqfU83sbh3kS yjS2agXWxZLlpOueFW3eySPHQI777wUEj7hNf+852qsWZGzdGHrkD7R7Ifj22EGCJhqw 2r/7xdVy94wq5Ad3zyN6f/GppBybQTj3j1AWrLiueqKG9qfhV0PBXPnbDpLuITgfJH9r eBUOmBxX/1CKQqQ8215fn0d7qG2BaQm6rmxTZYZGEpX7yCvFVjjMyBKyOjQo6meQSX13 cA1g== X-Gm-Message-State: AOAM5312EyfxMhDQNq46xuz4p2F4dLins+Hh+utL0V6lR5hTD1gTEMxK h5Zm3eTcDpZbYqebLu/1xkcrvzZwGaq7ou/572A8wAD/B0D0vgZISVIVgA4rEjYBNqzqORbpX4U lE95DZ8nvRNdXe1WzGQ7u5ovFDYJ3C8CCy2duBBYo2q/cLEfX7DMZaw6+wgnKawTqIszy X-Received: by 2002:a17:903:10d:b0:142:6343:a48e with SMTP id y13-20020a170903010d00b001426343a48emr9821972plc.29.1638387255219; 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-close 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 ------------=_1638387303-12401-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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() ------------=_1638387303-12401-1--