]> www.infradead.org Git - mtd-utils.git/commit
mkfs.ubifs: do not ignore --max-leb-cnt when formatting an UBI volume
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 7 Mar 2012 14:08:30 +0000 (16:08 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 7 Mar 2012 14:08:30 +0000 (16:08 +0200)
commitc36e0067ffdae9ca83abae89f2d22dc9013d9734
treea2fff0358202748b8b671679b8fef6d7ca6398e1
parentac10be41ad321752682f2549ebc42b2512012f60
mkfs.ubifs: do not ignore --max-leb-cnt when formatting an UBI volume

When the output file is an UBI volume - mkfs.ubifs just sets --max-leb-cnt
to the volume size and ignores the user-supplied --max-leb-cnt value, which
is wrong. Let's set it to the volume size only if the user did not supply
--max-leb-cnt.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
mkfs.ubifs/mkfs.ubifs.c