linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Linux RAID <linux-raid@vger.kernel.org>
Subject: mdadm --size and --update=uuid etc options...
Date: Mon, 05 Dec 2005 13:49:53 +0300	[thread overview]
Message-ID: <43941B51.5090601@tls.msk.ru> (raw)

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...

             reply	other threads:[~2005-12-05 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-05 10:49 Michael Tokarev [this message]
2005-12-05 11:46 ` mdadm --size and --update=uuid etc options Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43941B51.5090601@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).