linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm --size and --update=uuid etc options...
@ 2005-12-05 10:49 Michael Tokarev
  2005-12-05 11:46 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2005-12-05 10:49 UTC (permalink / raw)
  To: Linux RAID

I found it's quite difficult, after resizing underlying
partitions, to compute the new size for
  mdadm /dev/mdX -G --size=xyz
command, because of the way how it finds the superblock
offset.  So, the question is -- is it possible to make
the argument of --size to be optional, and let mdadm to
compute the size automatically, just like resize2fs does
now?  Or, maybe, to keep backward compatibility for
those people who used --size z (as opposed to --size=z),
to recognize `0' as special size, to mean "whole partition"
or "max size".  The latter is probably the best, i think.

The same is for newly appeared --update=uuid:xyz: I'd let
mdadm to choose an uuid just like it does for newly create
array, if the uuid argument isn't specified, like:
  --update=uuid:1234 --- use uuid=1234
  --update=uuid      --- choose random uid

Does it all look ok?

/mjt, who goes to produce some patches...

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

end of thread, other threads:[~2005-12-05 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 10:49 mdadm --size and --update=uuid etc options Michael Tokarev
2005-12-05 11:46 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).