mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Report 'buffer full' condition with v4 ioctl as well as with v1.
This commit is contained in:
parent
0b63cc1ea0
commit
e817a0b35c
@ -1,5 +1,6 @@
|
|||||||
Version 1.01.05
|
Version 1.01.05
|
||||||
=============================
|
=============================
|
||||||
|
Report 'buffer full' condition with v4 ioctl as well as with v1.
|
||||||
|
|
||||||
Version 1.01.04 - 2 Aug 2005
|
Version 1.01.04 - 2 Aug 2005
|
||||||
=============================
|
=============================
|
||||||
|
@ -1344,6 +1344,10 @@ int dm_task_run(struct dm_task *dmt)
|
|||||||
#else /* Userspace alternative for testing */
|
#else /* Userspace alternative for testing */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (dmi->flags & DM_BUFFER_FULL_FLAG)
|
||||||
|
/* FIXME Increase buffer size and retry operation (if query) */
|
||||||
|
log_error("Warning: libdevmapper buffer too small for data");
|
||||||
|
|
||||||
switch (dmt->type) {
|
switch (dmt->type) {
|
||||||
case DM_DEVICE_CREATE:
|
case DM_DEVICE_CREATE:
|
||||||
add_dev_node(dmt->dev_name, MAJOR(dmi->dev), MINOR(dmi->dev),
|
add_dev_node(dmt->dev_name, MAJOR(dmi->dev), MINOR(dmi->dev),
|
||||||
|
Loading…
Reference in New Issue
Block a user