bug in parameter parsing mkfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux