xref: /dragonfly/contrib/lvm2/dist/WHATS_NEW_DM (revision c69bf40f)
1Version 1.02.40 - 19th November 2009
2====================================
3  Fix install_device-mapper Makefile target to not build dmeventd plugins.
4  Support udev flags even when udev_sync is disabled or not compiled in.
5  Remove 'last_rule' from udev rules: honour DM_UDEV_DISABLE_OTHER_RULES_FLAG.
6  Add dmsetup --inactive support.
7  Add dm_task_query_inactive_table to libdevmapper for kernel driver >= 4.16.
8  Fix hash lookup segfault when keys compared are different lengths.
9
10Version 1.02.39 - 26th October 2009
11===================================
12  Remove strict default permissions for DM devices from 95-dm-notify.rules.
13  Add dmsetup udevflags command to decode udev flags in given cookie value.
14  Support udev flags in libdevmapper incl. dm_tree_add_new_dev_with_udev_flags.
15  Make libdm ABI consistent when built with/without selinux support.
16
17Version 1.02.38 - 25th September 2009
18=====================================
19  Export DM_DEV_DIR_UMASK, the default umask for /dev directories created.
20  Handle any path supplied to dm_task_set_name by looking up in /dev/mapper.
21  Add several examples to 12-dm-permissions.rules.
22  Add splitname and --yes to dmsetup man page.
23  Fix _mirror_emit_segment_line return code.
24  Fix dmeventd _temporary_log_fn parameters. (2.02.50)
25
26Version 1.02.37 - 15th September 2009
27=====================================
28  Add dmsetup manpage entries for udevcomplete_all and udevcookies.
29  Check udev is running when processing cookies and retain state internally.
30  Add y|--yes option to dmsetup for default 'yes' answer to prompts.
31  Fix tools Makefile to process dmsetup sources separately.
32  Restore umask when device node creation fails.
33  Check kernel vsn to use 'block_on_error' or 'handle_errors' in mirror table.
34  Add dm-log-userspace.h to tree for cmirrord builds.
35
36Version 1.02.36 - 6th August 2009
37=================================
38  Add udevcookies, udevcomplete, udevcomplete_all and --noudevwait to dmsetup.
39  Add libdevmapper functions to support synchronisation with udev.
40
41Version 1.02.35 - 28th July 2009
42================================
43  Add LOG_LINE_WITH_ERRNO macro.
44  Use log_error macro consistently throughout in place of log_err.
45
46Version 1.02.34 - 15th July 2009
47================================
48  Use _exit() not exit() after forking to avoid flushing libc buffers twice.
49  Rename plog macro to LOG_LINE & add LOG_MESG variant for dm_dump_memory_debug.
50  Change plog to use dm_log_with_errno unless deprecated dm_log_init was used.
51  Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old fns.
52  Fix whitespace in linear target line to fix identical table line detection.
53  Add device number to more log messages during activation.
54
55Version 1.02.33 - 30th June 2009
56================================
57  Don't fallback to default major number: use dm_task_set_major_minor. (1.02.31)
58  Do not fork daemon when dmeventd cannot be found.
59  Add crypt target handling to libdevmapper tree nodes.
60  Add splitname command to dmsetup.
61  Add subsystem, vg_name, lv_name, lv_layer fields to dmsetup reports.
62  Make mempool optional in dm_split_lvm_name().
63
64Version 1.02.32 - 21st May 2009
65===============================
66  Only generate libdevmapper.a when configured to link statically.
67  Export dm_tree_node_size_changed() from libdevmapper.
68  Propagate the table size_changed property up the dm device tree.
69  Detect failure to free memory pools when releasing the library.
70  Fix segfault when getopt processes dmsetup -U, -G and -M options.
71
72Version 1.02.31 - 3rd March 2009
73================================
74  If kernel supports only one dm major number, use in place of any supplied.
75
76Version 1.02.30 - 26th January 2009
77====================================
78  Add "all" field to reports expanding to all fields of report type.
79  Enforce device name length and character limitations in libdm.
80  Replace _dm_snprintf with EMIT_PARAMS macro for creating target lines.
81
82Version 1.02.29 - 10th November 2008
83====================================
84  Merge device-mapper into the LVM2 tree.
85  Split out dm-logging.h from log.h.
86  Use lvm-types.h.
87  Add usrsbindir to configure.
88
89Version 1.02.28 - 18th September 2008
90=====================================
91  Only resume devices in dm_tree_preload_children if size changes.
92  Extend deptree buffers so the largest possible device numbers fit.
93  Generate versioned libdevmapper-event.so.
94  Underline longer report help text headings.
95
96Version 1.02.27 - 25th June 2008
97================================
98  Align struct memblock in dbg_malloc for sparc.
99  Add --unquoted and --rows to dmsetup.
100  Avoid compiler warning about cast in dmsetup.c's OFFSET_OF macro.
101  Fix inverted no_flush debug message.
102  Remove --enable-jobs from configure. (Set at runtime instead.)
103  Bring configure.in and list.h into line with the lvm2 versions.
104
105Version 1.02.26 - 6th June 2008
106===============================
107  Initialise params buffer to empty string in _emit_segment.
108  Skip add_dev_node when ioctls disabled.
109  Make dm_hash_iter safe against deletion.
110  Accept a NULL pointer to dm_free silently.
111  Add tables_loaded, readonly and suspended columns to reports.
112  Add --nameprefixes to dmsetup.
113  Add field name prefix option to reporting functions.
114  Calculate string size within dm_pool_grow_object.
115
116Version 1.02.25 - 10th April 2008
117=================================
118  Remove redundant if-before-free tests.
119  Use log_warn for reporting field help text instead of log_print.
120  Change cluster mirror log type name (s/clustered_/clustered-/)
121
122Version 1.02.24 - 20th December 2007
123====================================
124  Fix deptree to pass new name to _resume_node after a rename.
125  Suppress other node operations if node is deleted.
126  Add node operation stack debug messages.
127  Report error when empty device name passed to readahead functions.
128  Fix minimum readahead debug message.
129
130Version 1.02.23 - 5th December 2007
131===================================
132  Update dm-ioctl.h after removal of compat code.
133  Add readahead support to libdevmapper and dmsetup.
134  Fix double free in a libdevmapper-event error path.
135  Fix configure --with-dmeventd-path substitution.
136  Allow a DM_DEV_DIR environment variable to override /dev in dmsetup.
137  Create a libdevmapper.so.$LIB_VERSION symlink within the build tree.
138  Avoid static link failure with some SELinux libraries that require libpthread.
139  Remove obsolete dmfs code from tree and update INSTALL.
140
141Version 1.02.22 - 21st August 2007
142==================================
143  Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
144  Update to use autoconf 2.61, while still supporting 2.57.
145  Avoid repeated dm_task free on some dm_event_get_registered_device errors.
146  Introduce log_sys_* macros from LVM2.
147  Export dm_fclose and dm_create_dir; remove libdm-file.h.
148  Don't log EROFS mkdir failures in _create_dir_recursive (for LVM2).
149  Add fclose wrapper dm_fclose that catches write failures (using ferror).
150
151Version 1.02.21 - 13th July 2007
152================================
153  Introduce _LOG_STDERR to send log_warn() messages to stderr not stdout.
154  Fix dmsetup -o devno string termination. (1.02.20)
155
156Version 1.02.20 - 15th June 2007
157================================
158  Fix default dmsetup report buffering and add --unbuffered.
159  Add tree-based and dependency fields to dmsetup reports.
160
161Version 1.02.19 - 27th April 2007
162=================================
163  Standardise protective include file #defines.
164  Add regex functions to library.
165  Avoid trailing separator in reports when there are hidden sort fields.
166  Fix segfault in 'dmsetup status' without --showkeys against crypt target.
167  Deal with some more compiler warnings.
168  Introduce _add_field() and _is_same_field() to libdm-report.c.
169  Fix some libdevmapper-event and dmeventd memory leaks.
170  Remove unnecessary memset() return value checks.
171  Fix a few leaks in reporting error paths. [1.02.15+]
172
173Version 1.02.18 - 13th February 2007
174====================================
175  Improve dmeventd messaging protocol: drain pipe and tag messages.
176
177Version 1.02.17 - 29th January 2007
178===================================
179  Add recent reporting options to dmsetup man page.
180  Revise some report fields names.
181  Add dmsetup 'help' command and update usage text.
182  Use fixed-size fields in report interface and reorder.
183
184Version 1.02.16 - 25th January 2007
185===================================
186  Add some missing close() and fclose() return value checks.
187  Migrate dmsetup column-based output over to new libdevmapper report framework.
188  Add descriptions to reporting field definitions.
189  Add a dso-private variable to dmeventd dso interface.
190  Add dm_event_handler_[gs]et_timeout functions.
191  Streamline dm_report_field_* interface.
192  Add cmdline debug & version options to dmeventd.
193  Add DM_LIB_VERSION definition to configure.h.
194  Suppress 'Unrecognised field' error if report field is 'help'.
195  Add --separator and --sort to dmsetup (unused).
196  Make alignment flag optional when specifying report fields.
197
198Version 1.02.15 - 17th January 2007
199===================================
200  Add basic reporting functions to libdevmapper.
201  Fix a malloc error path in dmsetup message.
202  More libdevmapper-event interface changes and fixes.
203  Rename dm_saprintf() to dm_asprintf().
204  Report error if NULL pointer is supplied to dm_strdup_aux().
205  Reinstate dm_event_get_registered_device.
206
207Version 1.02.14 - 11th January 2007
208===================================
209  Add dm_saprintf().
210  Use CFLAGS when linking so mixed sparc builds can supply -m64.
211  Add dm_tree_use_no_flush_suspend().
212  Lots of dmevent changes including revised interface.
213  Export dm_basename().
214  Cope with a trailing space when comparing tables prior to possible reload.
215  Fix dmeventd to cope if monitored device disappears.
216
217Version 1.02.13 - 28 Nov 2006
218=============================
219  Update dmsetup man page (setgeometry & message).
220  Fix dmsetup free after getline with debug.
221  Suppress encryption key in 'dmsetup table' output unless --showkeys supplied.
222
223Version 1.02.12 - 13 Oct 2006
224=============================
225  Avoid deptree attempting to suspend a device that's already suspended.
226
227Version 1.02.11 -  12 Oct 2006
228==============================
229  Add suspend noflush support.
230  Add basic dmsetup loop support.
231  Switch dmsetup to use dm_malloc and dm_free.
232
233Version 1.02.10 - 19 Sep 2006
234=============================
235  Add dm_snprintf(), dm_split_words() and dm_split_lvm_name() to libdevmapper.
236  Reorder mm bounds_check code to reduce window for a dmeventd race.
237
238Version 1.02.09 - 15 Aug 2006
239=============================
240  Add --table argument to dmsetup for a one-line table.
241  Abort if errors are found during cmdline option processing.
242  Add lockfs indicator to debug output.
243
244Version 1.02.08 - 17 July 2006
245==============================
246  Append full patch to check in emails.
247  Avoid duplicate dmeventd subdir with 'make distclean'.
248  Update dmsetup man page.
249  Add --force to dmsetup remove* to load error target.
250  dmsetup remove_all also performs mknodes.
251  Don't suppress identical table reloads if permission changes.
252  Fix corelog segment line.
253  Suppress some compiler warnings.
254
255Version 1.02.07 - 11 May 2006
256=============================
257  Add DM_CORELOG flag to dm_tree_node_add_mirror_target().
258  Avoid a dmeventd compiler warning.
259
260Version 1.02.06 - 10 May 2006
261=============================
262  Move DEFS into configure.h.
263  Fix leaks in error paths found by coverity.
264  Remove dmsetup line buffer limitation.
265
266Version 1.02.05 - 19 Apr 2006
267=============================
268  Separate install_include target in makefiles.
269  Separate out DEFS from CFLAGS.
270  Support pkg-config.
271  Check for libsepol.
272
273Version 1.02.04 - 14 Apr 2006
274=============================
275  Bring dmsetup man page up-to-date.
276  Use name-based device refs if kernel doesn't support device number refs.
277  Fix memory leak (struct dm_ioctl) when struct dm_task is reused.
278  If _create_and_load_v4 fails part way through, revert the creation.
279  dmeventd thread/fifo fixes.
280  Add file & line to dm_strdup_aux().
281  Add setgeometry.
282
283Version 1.02.03 - 7 Feb 2006
284============================
285  Add exported functions to set uid, gid and mode.
286  Rename _log to dm_log and export.
287  Add dm_tree_skip_lockfs.
288  Fix dm_strdup debug definition.
289  Fix hash function to avoid using a negative array offset.
290  Don't inline _find in hash.c and tidy signed/unsigned etc.
291  Fix libdevmapper.h #endif.
292  Fix dmsetup version driver version.
293  Add sync, nosync and block_on_error mirror log parameters.
294  Add hweight32.
295  Fix dmeventd build.
296
297Version 1.02.02 - 2 Dec 2005
298============================
299  dmeventd added.
300  Export dm_task_update_nodes.
301  Use names instead of numbers in messages when ioctls fail.
302
303Version 1.02.01 - 23 Nov 2005
304=============================
305  Resume snapshot-origins last.
306  Drop leading zeros from dm_format_dev.
307  Suppress attempt to reload identical table.
308  Additional LVM- prefix matching for transitional period.
309
310Version 1.02.00 - 10 Nov 2005
311=============================
312  Added activation functions to library.
313  Added return macros.
314  Also suppress error if device doesn't exist with DM_DEVICE_STATUS.
315  Export dm_set_selinux_context().
316  Add dm_driver_version().
317  Added dependency tree functions to library.
318  Added hash, bitset, pool, dbg_malloc to library.
319  Added ls --tree to dmsetup.
320  Added dmsetup --nolockfs support for suspend/reload.
321
322Version 1.01.05 - 26 Sep 2005
323=============================
324  Resync list.h with LVM2.
325  Remember increased buffer size and use for subsequent calls.
326  On 'buffer full' condition, double buffer size and repeat ioctl.
327  Fix termination of getopt_long() option array.
328  Report 'buffer full' condition with v4 ioctl as well as with v1.
329
330Version 1.01.04 - 2 Aug 2005
331============================
332  Fix dmsetup ls -j and status --target with empty table.
333
334Version 1.01.03 - 13 Jun 2005
335=============================
336  Use matchpathcon mode parameter.
337  Fix configure script to re-enable selinux.
338
339Version 1.01.02 - 17 May 2005
340=============================
341  Call dm_lib_exit() and dm_lib_release() automatically now.
342  Add --target <target_type> filter to dmsetup table/status/ls.
343  Add --exec <command> to dmsetup ls.
344  Fix dmsetup getopt_long usage.
345
346Version 1.01.01 - 29 Mar 2005
347=============================
348  Update dmsetup man page.
349  Drop-in devmap_name replacement.
350  Add option to compile without ioctl for testing.
351  Fix DM_LIB_VERSION sed.
352
353Version 1.01.00 - 17 Jan 2005
354=============================
355  Add dm_task_no_open_count() to skip getting open_count.
356
357Version 1.00.21 - 7 Jan 2005
358============================
359  Fix /proc/devices parsing.
360
361Version 1.00.20 - 6 Jan 2005
362============================
363  Attempt to fix /dev/mapper/control transparently if it's wrong.
364  Configuration-time option for setting uid/gid/mode for /dev/mapper nodes.
365  Update kernel patches for 2.4.27/2.4.28-pre-4 (includes minor fixes).
366  Add --noheadings columns option for colon-separated dmsetup output.
367  Support device referencing by uuid or major/minor.
368  Warn if kernel data didn't fit in buffer.
369  Fix a printf.
370
371Version 1.00.19 - 3 July 2004
372=============================
373  More autoconf fixes.
374  Fix a dmsetup newline.
375  Fix device number handling for 2.6 kernels.
376
377Version 1.00.18 - 20 Jun 2004
378=============================
379  Fix a uuid free in libdm-iface.
380  Fix a targets string size calc in driver.
381  Add -c to dmsetup for column-based output.
382  Add target message-passing ioctl.
383
384Version 1.00.17 - 17 Apr 2004
385=============================
386  configure --with-owner= --with-group= to avoid -o and -g args to 'install'
387  Fix library selinux linking.
388
389Version 1.00.16 - 16 Apr 2004
390=============================
391  Ignore error setting selinux file context if fs doesn't support it.
392
393Version 1.00.15 - 7 Apr 2004
394============================
395  Fix status overflow check in kernel patches.
396
397Version 1.00.14 - 6 Apr 2004
398============================
399  Fix static selinux build.
400
401Version 1.00.13 - 6 Apr 2004
402============================
403  Add some basic selinux support.
404
405Version 1.00.12 - 6 Apr 2004
406============================
407  Fix dmsetup.static install.
408
409Version 1.00.11 - 5 Apr 2004
410============================
411  configure --enable-static_link does static build in addition to dynamic.
412  Moved Makefile library targets definition into template.
413
414Version 1.00.10 - 2 Apr 2004
415============================
416  Fix DESTDIR handling.
417  Static build installs to dmsetup.static.
418  Basic support for internationalisation.
419  Minor Makefile tidy-ups/fixes.
420
421Version 1.00.09 - 31 Mar 2004
422=============================
423  Update copyright notices to Red Hat.
424  Move full mknodes functionality from dmsetup into libdevmapper.
425  Avoid sscanf %as for uClibc compatibility.
426  Cope if DM_LIST_VERSIONS is not defined.
427  Add DM_LIST_VERSIONS functionality to kernel patches.
428  Generate new kernel patches for 2.4.26-rc1.
429
430Version 1.00.08 - 27 Feb 2004
431=============================
432  Added 'dmsetup targets'.
433  Added event_nr support to 'dmsetup wait'.
434  Updated dmsetup man page.
435  Allow logging function to be reset to use internal one.
436  Bring log macros in line with LVM2 ones.
437  Added 'make install_static_lib' which installs libdevmapper.a.
438  Made configure/makefiles closer to LVM2 versions.
439  Fixed DESTDIR for make install/install_static_lib.
440  Updated README/INSTALL to reflect move to sources.redhat.com.
441  Updated autoconf files to 2003-06-17.
442