From: Marcel Meyer <meyerm-utillinux@fs.tum.de>
To: util-linux@vger.kernel.org
Subject: bug in parameter parsing mkfs
Date: Fri, 25 Jan 2013 14:42:02 +0100 [thread overview]
Message-ID: <8726723.nWpYbPFEYv@taris> (raw)
Hello,
we encountered a bug in the parameter parsing of mkfs after c&p of a wrongly
written wiki article.
So
$ mkfs.ext4 -Llabel /dev/device
and
$ mkfs.ext4 -L label /dev/device
work as expected.
$ mkfs ext4 -Llabel /dev/device # note the missing "."
reports correctly "invalid blocks '/dev/device' on device 'ext4'" after
invoking mkfs.ext2 as the default mkfs.
But when you enter the same wrong command line with an additional space in the
label like
$ mkfs ext4 -L label /dev/device
it formats /dev/device with an ext2 filesystem and the label "label".
Yours
Marcel
reply other threads:[~2013-01-25 13:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8726723.nWpYbPFEYv@taris \
--to=meyerm-utillinux@fs.tum.de \
--cc=util-linux@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