]> granicus.if.org Git - sysstat/commit
No longer assume that device-mapper major number is 253.
authorSebastien Godard <sysstat@orange.fr>
Sat, 11 Dec 2010 20:49:22 +0000 (21:49 +0100)
committerSebastien Godard <sysstat@orange.fr>
Sat, 11 Dec 2010 20:49:22 +0000 (21:49 +0100)
commit4accbb2d37dc04dad87cdc4ffbf9021d10eadbf1
tree823acdb43c358da58fc9bc3d3b960dcd51c33908
parent4cdc73182aa81dbc9d732b8eacef247a876d2172
No longer assume that device-mapper major number is 253.
Get the real number from /proc/devices file.

The sar, sadf and iostat commands used to assume that device-mapper
major number was 253. This happened to be false sometimes. So get
the real number from the /proc/devices file.

From Mike Coleman <tutufan@gmail.com> 04/10/2010:

The iostat program seems to assume that the major device number for
devmap will always be 253.  This doesn't seem to be an official
number, though, and I have a box where it actually ends up being 252,
which breaks 'iostat -N'.

It looks like this can be determined dynamically by looking at /proc/devices.
CHANGES
common.c
common.h
iostat.c
pr_stats.c
rndr_stats.c
sadf.c
sar.c
xml_stats.c