X-Loop: help-debbugs@HIDDEN Subject: bug#29503: parted name fails on names with spaces Resent-From: Nathan Craike <ncraike@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-parted@HIDDEN Resent-Date: Thu, 30 Nov 2017 02:26:02 +0000 Resent-Message-ID: <handler.29503.B.151200874322722 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 29503 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 29503 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-parted@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.151200874322722 (code B ref -1); Thu, 30 Nov 2017 02:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2017 02:25:43 +0000 Received: from localhost ([127.0.0.1]:37421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1eKEXl-0005uI-6X for submit <at> debbugs.gnu.org; Wed, 29 Nov 2017 21:25:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ncraike@HIDDEN>) id 1eKEHD-0005UX-Al for submit <at> debbugs.gnu.org; Wed, 29 Nov 2017 21:08:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ncraike@HIDDEN>) id 1eKEH7-0006MP-5O for submit <at> debbugs.gnu.org; Wed, 29 Nov 2017 21:08:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <ncraike@HIDDEN>) id 1eKEH7-0006Li-1z for submit <at> debbugs.gnu.org; Wed, 29 Nov 2017 21:08:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ncraike@HIDDEN>) id 1eKEH5-0006ue-SO for bug-parted@HIDDEN; Wed, 29 Nov 2017 21:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ncraike@HIDDEN>) id 1eKEH4-0006Gv-Qb for bug-parted@HIDDEN; Wed, 29 Nov 2017 21:08:27 -0500 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:38934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <ncraike@HIDDEN>) id 1eKEH4-0006FU-Jt for bug-parted@HIDDEN; Wed, 29 Nov 2017 21:08:26 -0500 Received: by mail-it0-x22d.google.com with SMTP id 68so6611306ite.4 for <bug-parted@HIDDEN>; Wed, 29 Nov 2017 18:08:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vhsqHFAoV7fbyX5kdQXXl+OepTtYHfWDuexVUloVYeg=; b=Ah0Htc2M1Q2ZeskkjBfeE0VZ0hrp8l6W9RTMswuzSCe48g97tFEH6a/p+ieEfamlal BaOnJQGFmpEz+wsiMMRwgDpyjLdfLNFM+mqsrlpSGbzkHhvnEd6WbMa4u4GKp1wCw9eo fiUf2rgU8wexmt/c77EvujEtqTMX7rSCZHzkBeZ2diufLa3TaD0XGGeCQbwOLV5Xkfra hKzSkAvFcEXOKr2KnvQc2AzRIWijJ4V/krEGAAWfeWm+UnFUFKFqThwBgmzk08J0aOFO aHdnFZ/NcHNc3F7kK9ZNvISQHAfcRbmaGIpUXxMgDrieFLsmfzbZbY8qxlq1R+f4nJ8f RcRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vhsqHFAoV7fbyX5kdQXXl+OepTtYHfWDuexVUloVYeg=; b=H0yR9kmj2aEGDEfj0Lnd8f9LXjlwJujqmB86YotomsId6vbLPPAa3zJab52r3+6GFE mKKPuhVQcGj7Z5ZMMw7IbReUfkvtYJt5+hggaRctYcqT5WqgumbDXYd44wXRj7+xt/kr z7gwkqCd0leI79IK0qRJx5yZMkxP/Rfrju/WZNoIuyjox35ZFxU/uL88egyF2jRgucGj h6vdpg8Pi0x1K8rGmWcBGBL6X3f/gWI7bAd0XgLGy8yYu3NgIVQTO4endzd0RMcs+bP0 EZCoFraH1qLGJ21gr+0Q3BMoWdTZmbFSfBFUYybEn+yZteqXx8FQd8lCWhtDnCPbq1K0 v3YA== X-Gm-Message-State: AJaThX4nsArrunmjUK4O7ss5yQJOqbhvvHEgLXzTEoXOHkTVxZWxp8Ec 7/HUd8L5U7Sfwa5GSgXVGBAtq1SXAButtHIcsix/Cvu1 X-Google-Smtp-Source: AGs4zMb8QorVXpNasdYdciz0Gw9VHECWT/5Is2WJ+dMK48+x+eaJA9jMjVSYznmVqFJSpVQUGNuU9k9oqOg3bI8IB10= X-Received: by 10.36.60.195 with SMTP id m186mr1193080ita.76.1512007705293; Wed, 29 Nov 2017 18:08:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.9.81 with HTTP; Wed, 29 Nov 2017 18:08:04 -0800 (PST) From: Nathan Craike <ncraike@HIDDEN> Date: Thu, 30 Nov 2017 12:08:04 +1000 Message-ID: <CAGKovwe3VJVyfV9XqYwfkXqt2oTi5Qb0t6vSX1GA2unVr+F7Dg@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Wed, 29 Nov 2017 21:25:39 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) Hi, I'm using GNU parted 3.2 running on Ubuntu 16.04.3 LTS. The machine is an Amazon EC2 instance (ie a virtual server) launched from Ubuntu's official 16.04 Amazon machine image (AMI). I'm trying to use parted to add a name to a disk partition. I'm not sure if it's of note, but this is a virtual disk attached to my EC2 instance (an "EBS volume" in Amazon terms). The disk in question is device "/dev/xvdb". I've already created the partition with: parted /dev/xvdb mklabel gpt parted /dev/xvdb mkpart primary ext4 0% 100% --align=optimal mkfs.ext4 -L 'Some other label' /dev/xvdb1 At this stage, "parted /dev/xvdb print" outputs: parted /dev/xvdb print Model: Xen Virtual Block Device (xvd) Disk /dev/xvdb: 5369MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 5368MB 5367MB ext4 primary If I then try to add to partition 1 a name which contains spaces using quotes, parted either prints its usage message or interactively prompts for the partition number and name. However, in either case parted seems to have applied the first word name given. Examples: ------------------------------------------------------ $ sudo parted /dev/xvdb name 1 'Secret Documents' Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...] Apply COMMANDs with PARAMETERS to DEVICE. If no COMMAND(s) are given, run in interactive mode. OPTIONs: ---x--- (more of the usage message removed) version display the version number and copyright information of GNU Parted Report bugs to bug-parted@HIDDEN $ sudo parted /dev/xvdb print Model: Xen Virtual Block Device (xvd) Disk /dev/xvdb: 5369MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 5368MB 5367MB ext4 Secret ------------------------------------------------------ $ sudo parted /dev/xvdb name 1 'My Name' Partition number? ^C Error: Expecting a partition number. $ sudo parted /dev/xvdb print Model: Xen Virtual Block Device (xvd) Disk /dev/xvdb: 5369MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 5368MB 5367MB ext4 My ------------------------------------------------------ The first example is the same as that given in the documentation at https://www.gnu.org/software/parted/manual/html_node/name.html Apologies if I'm misunderstanding the documentation, if this is a known bug, or if this is something introduced upstream. Regards, Nathan Craike
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Nathan Craike <ncraike@HIDDEN> Subject: bug#29503: Acknowledgement (parted name fails on names with spaces) Message-ID: <handler.29503.B.151200874322722.ack <at> debbugs.gnu.org> References: <CAGKovwe3VJVyfV9XqYwfkXqt2oTi5Qb0t6vSX1GA2unVr+F7Dg@HIDDEN> X-Gnu-PR-Message: ack 29503 X-Gnu-PR-Package: parted Reply-To: 29503 <at> debbugs.gnu.org Date: Thu, 30 Nov 2017 02:26:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-parted@HIDDEN If you wish to submit further information on this problem, please send it to 29503 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 29503: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29503 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.