Alasdair Kergon
3b6a147653
Add udevcomplete and --noudevwait to dmsetup.
2009-07-31 17:51:45 +00:00
Alasdair Kergon
dfed228991
Add libdevmapper functions to support synchronisation with udev.
2009-07-31 15:53:11 +00:00
Alasdair Kergon
7e7274b002
Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old
...
Change plog to use dm_log_with_errno unless deprecated dm_log_init was used.
Rename plog macro to LOG_LINE and use in dm_dump_memory_debug.
2009-07-10 09:59:37 +00:00
Milan Broz
f7c1e5f60d
Fix backward compatibility for major:minor query.
...
Is an application uses query and set major:minor
to device, it should not fallback to default major by default.
Add new function whoich allows that (and use it in lvm2).
2009-06-17 20:55:24 +00:00
Milan Broz
25d9591416
Support crypt segment in libdevmapper tree.
...
- it can support multiple segments, but note that
to work properly, correct IV (initialization vector)
offset parameter must be set properly.
Because most usage of IV start offset is when we join
several crypto segments together (so iv_offset is the segment
start offset), DM_CRYPT_IV_DEFAULT is defined to simplify
the process.
Function accepts the string in cipher agrument (already
including chainmode and iv type; chainmode and iv parameters are NULL
in this case) or user can provide split parameters which will
join into dm-crypt cipher specification "cipher-chainmode-iv".
All these parameters must be supplied in correct dm-crypt format.
2009-06-09 16:10:20 +00:00
Alasdair Kergon
90cc3a0f05
Make mempool optional in dm_split_lvm_name()
2009-06-03 11:40:23 +00:00
Milan Broz
bb6db55686
Use suspend with flush when device size was changed during table preload.
...
This allows online mirror resize, also removes condition to preventing
code to do this.
2009-05-20 09:52:37 +00:00
Alasdair Kergon
2a550ef96d
more fixes
2008-11-04 15:07:45 +00:00
Alasdair Kergon
03ed7d73fc
more missing bits
2008-11-04 14:57:06 +00:00
Alasdair Kergon
874f42ad6c
Extend deptree buffers so the largest possible device numbers fit.
2008-09-02 12:16:07 +00:00
Alasdair Kergon
65f0656f54
Add --rows to dmsetup.
2008-06-24 22:53:48 +00:00
Alasdair Kergon
366e89bda0
dmsetup --unquoted
2008-06-24 20:16:47 +00:00
Alasdair Kergon
a636299680
Add field name prefix option to reporting functions.
2008-04-20 00:11:08 +00:00
Alasdair Kergon
08e5bd5b72
Calculate string size within dm_pool_grow_object.
2008-04-19 15:50:18 +00:00
Alasdair Kergon
a6afae2356
clarify when read_ahead may be set
2007-12-05 16:28:19 +00:00
Alasdair Kergon
a3c23f650c
read_ahead node ops
2007-11-30 14:59:57 +00:00
Alasdair Kergon
49b2006824
add read_ahead functions to library and dmsetup --readahead
...
(Not live yet.)
2007-11-27 20:57:05 +00:00
Alasdair Kergon
ceec4455df
Add DM_READ_AHEAD_MINIMUM_FLAG
2007-11-12 20:47:18 +00:00
Alasdair Kergon
ccb85cc719
Define DM_READ_AHEAD_AUTO and DM_READ_AHEAD_NONE.
2007-11-09 16:52:36 +00:00
Alasdair Kergon
1ad58e1121
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-21 16:26:07 +00:00
Alasdair Kergon
541ea4dc63
improve changelog
2007-08-06 13:09:46 +00:00
Jim Meyering
4d418dee0e
Export dm_create_dir (was create_dir) to help fix LVM2 link error
...
* lib/libdm-file.c (dm_create_dir): Rename from create_dir.
* lib/libdevmapper.h (dm_create_dir): Declare.
* lib/.exported_symbols: Add dm_create_dir.
* lib/ioctl/libdm-iface.c (_create_control): Update sole use.
Patch by Jun'ichi Nomura. Details in
http://www.redhat.com/archives/lvm-devel/2007-July/msg00040.html
2007-07-28 10:48:36 +00:00
Jim Meyering
b14b97599d
dm_fclose: new function
...
* lib/libdevmapper.h: Declare it.
* lib/libdm-file.c (dm_fclose): Define it.
* lib/.exported_symbols: Add dm_fclose.
2007-07-24 14:15:45 +00:00
Alasdair Kergon
b9f5a18a76
Add regex functions to library.
2007-04-27 18:40:23 +00:00
Alasdair Kergon
477ec611d5
Deal with some more compiler warnings. Hope this doesn't break anything...
2007-04-27 14:52:41 +00:00
Alasdair Kergon
684eecba1d
Use fixed-size fields in report interface.
2007-01-29 17:23:54 +00:00
Alasdair Kergon
9b021ba057
Add descriptions to reporting field definitions.
2007-01-23 19:18:52 +00:00
Alasdair Kergon
63e4217271
Add dm_event_handler_[gs]et_timeout functions.
...
Streamline dm_report_field_* interface.
2007-01-22 15:03:57 +00:00
Alasdair Kergon
26376ac1c9
Some internal renaming.
...
Add --separator and --sort to dmsetup (unused as yet).
Make alignment flag optional when specifying report fields.
2007-01-18 17:47:58 +00:00
Alasdair Kergon
954bd9257b
Add basic reporting functions to libdevmapper.
2007-01-16 18:04:15 +00:00
Alasdair Kergon
3184ff75c4
More libdevmapper-event interface changes and fixes.
...
Rename dm_saprintf() to dm_asprintf().
2007-01-15 18:21:01 +00:00
Alasdair Kergon
d554b2bc94
Lots of dmeventd-related changes.
2007-01-11 21:54:53 +00:00
Alasdair Kergon
7831665417
Add dm_tree_use_no_flush_suspend().
2007-01-09 19:44:07 +00:00
Alasdair Kergon
cbdccf0a9c
Lots of dmevent changes.
...
Export dm_basename().
Cope with a trailing space when comparing tables prior to possible reload.
2007-01-08 15:18:52 +00:00
Alasdair Kergon
45abade7fc
Add suspend noflush support.
...
Add basic dmsetup loop support.
2006-10-12 15:42:25 +00:00
Alasdair Kergon
8d98b02ba2
Add dm_snprintf
2006-08-21 12:52:39 +00:00
Alasdair Kergon
a93fe79bc4
Add dm_split_words() and dm_split_lvm_name() to libdevmapper.
2006-08-21 12:07:03 +00:00
Alasdair Kergon
d3f2f00c25
Add DM_CORELOG flag to dm_tree_node_add_mirror_target().
2006-05-11 19:10:55 +00:00
Alasdair Kergon
42635c3938
Add file & line to dm_strdup_aux().
2006-02-23 19:11:51 +00:00
Alasdair Kergon
ed43dc842b
A setgeometry implementation. [untested]
2006-02-20 23:55:58 +00:00
Alasdair Kergon
ed036598a9
Add exported functions to set uid, gid and mode. [Bastian Blank]
2006-02-03 14:23:22 +00:00
Alasdair Kergon
d031a374f9
Rename _log to dm_log and export.
...
Fix misc compile-time warnings.
2006-01-31 14:50:38 +00:00
Alasdair Kergon
55f69c98cb
Add dm_tree_skip_lockfs.
2006-01-30 23:36:04 +00:00
Alasdair Kergon
efe1c8a070
Fix dm_strdup debug definition.
2006-01-10 22:19:41 +00:00
Alasdair Kergon
5fdb3e7cd6
Fix libdevmapper.h #endif
2006-01-04 16:05:44 +00:00
Alasdair Kergon
8825157fbb
Change dm_tree_node_add_mirror_target_log parm order
2005-12-19 21:03:17 +00:00
Alasdair Kergon
a82775f544
Add sync, nosync and block_on_error mirror log parameters.
...
Add hweight32.
2005-12-13 15:49:27 +00:00
Alasdair Kergon
9aa3465513
Export dm_task_update_nodes.
...
Use names instead of numbers in messages when ioctls fail.
2005-12-01 23:11:41 +00:00
Alasdair Kergon
6db4dcff7a
Drop leading zeros from dm_format_dev.
...
Suppress attempt to reload identical table.
2005-11-22 18:43:12 +00:00
Alasdair Kergon
6315982752
more debug fixes
2005-11-11 16:16:37 +00:00