mdadm --size and --update=uuid etc options...

From: Michael Tokarev <hidden>
Date: 2005-12-05 10:49:53

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...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help