diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-09-02 16:46:48 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-09-02 16:50:58 +0300 |
commit | 214ddd398850d003dcd1943da6a039f324646b5b (patch) | |
tree | b9830bc7e4942a5aab8bcc61eead896bb21875ff /docfdisk.c | |
parent | df0965a0b0dea9210078e616e1af696966fbb1ac (diff) |
ubimkvol: check for free LEBs
Check for free LEBs before trying to create a volume. This fixes
the following issue:
$ ubimkvol /dev/ubi0 -n 0 -N test_fs -m
ubimkvol: error!: cannot UBI create volume
error 22 (Invalid argument)
Error: cannot create UBI volume
"Invalid argument" ? Not understandable. But the thing is that
-m makes ubimkvol use available space, which is zero, then it
passes zero to the ioctl, which fails in request validation
code, because 0 invalid volume size.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'docfdisk.c')
0 files changed, 0 insertions, 0 deletions