Whamcloud - gitweb
mke2fs: make "invalid blocks count" error more clear
authorEric Sandeen <sandeen@redhat.com>
Thu, 12 Aug 2010 18:40:44 +0000 (14:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Sep 2010 13:25:23 +0000 (09:25 -0400)
commit792cce309207b44b26fd925b9ca43d9ed5518651
treea842ce951f662b9413a3c6ecae7566bd875f7b50
parent6fcd6f84c235f4bf2bd9770f172837da9982eb6e
mke2fs: make "invalid blocks count" error more clear

Mistakes on the commandline can lead to odd error messages:

# mke2fs -t ext4 -E stride=128 stripe-width=512 /dev/sda1
mke2fs: invalid blocks count - /dev/sda1

Making it a bit more explicit is more obvious:

mke2fs: invalid blocks count '/dev/sda1' on device 'stripe-width=512'

(hint, the mistake was no comma separation for -E)

Reported-by: Adam Huffman <bloch@verdurin.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c