From e817a0b35c32e93e1517c34bda8d1975a56043de Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 8 Aug 2005 18:40:17 +0000 Subject: [PATCH] Report 'buffer full' condition with v4 ioctl as well as with v1. --- WHATS_NEW_DM | 1 + libdm/ioctl/libdm-iface.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index b51880bbe..c925df2ad 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.01.05 ============================= + Report 'buffer full' condition with v4 ioctl as well as with v1. Version 1.01.04 - 2 Aug 2005 ============================= diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index cd1cd6f09..25f0aa25e 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -1344,6 +1344,10 @@ int dm_task_run(struct dm_task *dmt) #else /* Userspace alternative for testing */ #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) { case DM_DEVICE_CREATE: add_dev_node(dmt->dev_name, MAJOR(dmi->dev), MINOR(dmi->dev),