projects
/
oweals
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b98642a
)
block: allow block info /dev/ubi?_?
author
Daniel Golle
<daniel@makrotopia.org>
Wed, 20 Jul 2016 23:57:50 +0000
(
01:57
+0200)
committer
Daniel Golle
<daniel@makrotopia.org>
Thu, 21 Jul 2016 00:30:56 +0000
(
02:30
+0200)
Allow querying /dev/ubi?_? devices though they are not block devices.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 6c025fdce4963eb6169a37517637d9ee6873dde4..85c5b586f5aed62db2bed1c8c64da4c1ec85b7b1 100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-1277,7
+1277,7
@@
static int main_info(int argc, char **argv)
ULOG_ERR("failed to stat %s\n", argv[i]);
continue;
}
- if (!S_ISBLK(s.st_mode)) {
+ if (!S_ISBLK(s.st_mode)
&& !(S_ISCHR(s.st_mode) && major(s.st_rdev) == 250)
) {
ULOG_ERR("%s is not a block device\n", argv[i]);
continue;
}