Util-Linux package development
 help / color / mirror / Atom feed
* partx does not seem able to combine showing with updating
@ 2015-01-11 21:25 Benno Schulenberg
  2015-01-12  9:59 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Benno Schulenberg @ 2015-01-11 21:25 UTC (permalink / raw)
  To: Util-Linux


# ./partx --update --pairs -n 2 -o SIZE /dev/sda
SIZE="14.9G"

# ./partx --pairs --update -n 2 -o SIZE /dev/sda


# ./partx --verbose --update --pairs -n 2 -o SIZE /dev/sda
partition: none, disk: /dev/sda, lower: 2, upper: 2
/dev/sda: partition table type 'dos' detected
SIZE="14.9G"

# ./partx --verbose --pairs --update -n 2 -o SIZE /dev/sda
partition: none, disk: /dev/sda, lower: 2, upper: 2
/dev/sda: partition table type 'dos' detected
/dev/sda: partition #2 added


In my opinion the output should be the same in both cases,
either both updating and showing the partition, or saying
that the two options cannot be combined.

Benno

-- 
http://www.fastmail.com - The way an email service should be


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: partx does not seem able to combine showing with updating
  2015-01-11 21:25 partx does not seem able to combine showing with updating Benno Schulenberg
@ 2015-01-12  9:59 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2015-01-12  9:59 UTC (permalink / raw)
  To: Benno Schulenberg; +Cc: Util-Linux

On Sun, Jan 11, 2015 at 10:25:00PM +0100, Benno Schulenberg wrote:
> 
> # ./partx --update --pairs -n 2 -o SIZE /dev/sda
> SIZE="14.9G"
> 
> # ./partx --pairs --update -n 2 -o SIZE /dev/sda
> 
> 
> # ./partx --verbose --update --pairs -n 2 -o SIZE /dev/sda
> partition: none, disk: /dev/sda, lower: 2, upper: 2
> /dev/sda: partition table type 'dos' detected
> SIZE="14.9G"
> 
> # ./partx --verbose --pairs --update -n 2 -o SIZE /dev/sda
> partition: none, disk: /dev/sda, lower: 2, upper: 2
> /dev/sda: partition table type 'dos' detected
> /dev/sda: partition #2 added
> 
> 
> In my opinion the output should be the same in both cases,
> either both updating and showing the partition, or saying
> that the two options cannot be combined.

 Yes, --update is missing in "mutually exclusive" list. Fixed.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-12  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-11 21:25 partx does not seem able to combine showing with updating Benno Schulenberg
2015-01-12  9:59 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox