aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests/lib/tests.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-01-25 23:31:50 -0800
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-01-27 16:55:24 +0200
commitfb3281d740b4d222746e5e366732d414038c951e (patch)
tree0a73afb7f09bd547110f9860de667e00e2bdd019 /tests/fs-tests/lib/tests.c
parent780ebf0db71429b508ac64b3133f8e4901f64733 (diff)
ubinfo: fix `--all' for non-consecutive device numbers
When we have assigned non-consecutive device numbers to our UBI devices, then we run `ubinfo --all', we get errors once ubinfo tries to process the devices in the "hole". For instance, suppose there are two UBI devices, /dev/ubi0 and /dev/ubi10; then, ubinfo will fail trying to open /dev/ubi1 with: ubinfo: error!: cannot get information about UBI device 1 error 2 (No such file or directory) This patch adds a check to first see if device is present, then continue to the next ID if it doesn't exist. Reported-by: Brian Foster <brian.foster@maxim-ic.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tests/fs-tests/lib/tests.c')
0 files changed, 0 insertions, 0 deletions