]> sourceware.org Git - lvm2.git/commit
Support improperly formated device numbers
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 20 Mar 2012 10:47:02 +0000 (10:47 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 20 Mar 2012 10:47:02 +0000 (10:47 +0000)
commit37672e676da49e29a2d98bae52ec543a81d9d3d9
tree8a1c0cea5f5d6ded82731fea36232f272d92410e
parent761407217a579ba3e0801f158929abf45e3e74a8
Support improperly formated device numbers

There are kernel drivers (smblk) which set '-1' as their device major number.
This number is listed in /proc/devices then - but the kernel itself is using
just 12 bits - thus device is accessible via 4095 - there is posted patch
for 3.4 to fix this behavior (0 for auto allocation was mean to be used).

However to still allow using such devices with older kernels add some code
to use same behavior - so cut 12 bits from the major number from /proc/devices.

For now use log_warn() - maybe the severity of the message could be lowered
to just verbose level.
WHATS_NEW
lib/filters/filter.c
This page took 0.029855 seconds and 5 git commands to generate.