]> sourceware.org Git - dm.git/commitdiff
Report 'buffer full' condition with v4 ioctl as well as with v1.
authorAlasdair Kergon <agk@redhat.com>
Mon, 8 Aug 2005 18:40:16 +0000 (18:40 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 8 Aug 2005 18:40:16 +0000 (18:40 +0000)
WHATS_NEW
lib/ioctl/libdm-iface.c

index b51880bbeae31f75e2c7bd25a9ac18cd570164ef..c925df2ad9eefd3616c1366fc0c7a78e46295856 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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
 =============================
index cd1cd6f09d64e2264ca1acaec1e95b3f3076e20f..25f0aa25e051dd0179bd49860f90ca13d4459522 100644 (file)
@@ -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),
This page took 0.026693 seconds and 5 git commands to generate.