1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/lib
Zdenek Kabelac 37672e676d 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.
2012-03-20 10:47:02 +00:00
..
activate Improve thin_check option passing 2012-03-14 17:12:05 +00:00
cache Just move declaration 2012-03-14 17:15:22 +00:00
commands Simplify error path code for filter initialization 2012-03-12 14:35:57 +00:00
config Improve thin_check option passing 2012-03-14 17:12:05 +00:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device Better structure layout for device_info 2012-03-12 14:40:41 +00:00
display Never try to test character past given buffer 2012-02-13 14:23:40 +00:00
error Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
filters Support improperly formated device numbers 2012-03-20 10:47:02 +00:00
format1 Pass 'single_device' parameter down to suppress 'Can't find uuid' messages 2012-02-29 02:35:35 +00:00
format_pool Pass 'single_device' parameter down to suppress 'Can't find uuid' messages 2012-02-29 02:35:35 +00:00
format_text Pass struct device around internally rather than dev_t. 2012-03-02 20:46:36 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in 2012-02-23 13:11:07 +00:00
locking Few more close and dev_close trace 2012-03-01 21:12:37 +00:00
log Few more close and dev_close trace 2012-03-01 21:12:37 +00:00
metadata Fix name conflicts that prevent down-converting RAID1 when specifying a device 2012-03-15 20:00:54 +00:00
mirror Use same signed numbers 2012-02-23 22:30:20 +00:00
misc Add --with-thin-check configure option 2012-03-14 17:09:00 +00:00
mm Log sys error for lseek 2012-03-01 21:19:20 +00:00
raid Revert free of allocated segtype 2012-02-28 14:23:41 +00:00
replicator Revert free of allocated segtype 2012-02-28 14:23:41 +00:00
report Use unsigned type for bitmask 2012-02-27 11:45:05 +00:00
snapshot Differentiate between snapshot status of "Invalid" and "Merge failed". 2012-01-20 22:02:04 +00:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin Purge remaining trim bits from code 2012-03-02 21:43:26 +00:00
unknown Fix log_error() usage 2011-09-24 21:19:30 +00:00
uuid Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
zero Add lv_activate_opts structure 2011-06-17 14:14:19 +00:00
Makefile.in Reflect new file locations, include file updates etc. 2012-02-28 18:35:04 +00:00