summaryrefslogtreecommitdiff
path: root/ubi-utils/old-utils/src/libubi_int.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-02 16:11:35 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-02 17:06:36 +0300
commite783e75e09b4a0a519665afd7bdeaf2985e7a09c (patch)
tree911df9cc2909f8c04077f392d191fdfc8383fd7b /ubi-utils/old-utils/src/libubi_int.h
parenta48340c335daba441c1f01a0cfce4d2ac6b2c9e1 (diff)
libmts: recognize pre-MTD-sysfs kernels better
Not-so-old linux kernel like 2.6.29 do already have "/sys/class/mtd/mtdX" directories, while very old kernels do not. But in 2.6.29 these directories do not contain any information. Anyway, the logic in libmtd which checked whether the system supports sysfs was broken, because it assumed that old systems do not even have "/sys/class/mtd/" directory. Fix this problem by checking for "/sys/class/mtd/mtdX/name". If this is present - the system really has sysfs support. This patch also adds an extra print to libmtd. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/old-utils/src/libubi_int.h')
0 files changed, 0 insertions, 0 deletions