Zdeněk Kabeláč
77ac863bb8
Replace _dm_snprintf with EMIT_PARAMS macro for creating target lines
2008-12-11 16:25:51 +00:00
Alasdair Kergon
281ee1c2bf
post-release (retrospective)
2008-11-19 14:14:51 +00:00
Alasdair Kergon
4a1cd0d391
First test release of the merged code base.
2008-11-10 12:39:50 +00:00
Alasdair Kergon
43924e31b8
Split out dm-logging.h from log.h
2008-10-30 17:24:04 +00:00
Alasdair Kergon
ba7253eaf7
Use lvm-types.h
2008-10-30 15:11:16 +00:00
Alasdair Kergon
f5585e9252
Add usrsbindir to configure.
2008-10-07 19:08:46 +00:00
Alasdair Kergon
797d0f1ef1
post-release
2008-09-18 20:09:51 +00:00
Alasdair Kergon
026cc120e7
Only resume devices in dm_tree_preload_children if size changes.
2008-09-18 18:34:53 +00:00
Alasdair Kergon
874f42ad6c
Extend deptree buffers so the largest possible device numbers fit.
2008-09-02 12:16:07 +00:00
Zdeněk Kabeláč
7487a7c988
Added generation of the versioned libdevmapper-event.so for LVM's test
2008-06-27 15:36:51 +00:00
Alasdair Kergon
a8c5758222
Underline longer report help text headings.
2008-06-25 19:52:52 +00:00
Alasdair Kergon
ac1373653c
post-release
2008-06-25 14:44:00 +00:00
Alasdair Kergon
b097aa787b
pre-commit
2008-06-25 14:24:17 +00:00
Alasdair Kergon
723be0fe69
Align struct memblock in dbg_malloc for sparc.
2008-06-25 14:10:33 +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
Jim Meyering
946d8ee046
avoid compiler warning about cast in OFFSET_OF macro
...
* dmsetup/dmsetup.c (OFFSET_OF): Use an equivalent definition
that does not cast a pointer value to a narrower type.
2008-06-18 10:19:25 +00:00
Alasdair Kergon
fe74f013e3
Fix inverted no_flush debug message. (mpatocka)
2008-06-10 11:19:19 +00:00
Alasdair Kergon
5c34f7847e
bring list.h into line with lvm2
2008-06-08 14:53:51 +00:00
Alasdair Kergon
4d52c9233b
.
2008-06-06 20:45:41 +00:00
Alasdair Kergon
2f02f1518a
Bring configure.in into line with the lvm2 version.
2008-06-06 20:33:13 +00:00
Alasdair Kergon
6a336dfc69
post-release
2008-06-06 19:28:35 +00:00
Alasdair Kergon
35dec1b9e4
pre-release
2008-06-06 19:09:19 +00:00
Alasdair Kergon
599fe39749
nameprefixes
2008-06-06 18:53:26 +00:00
Alasdair Kergon
44f3fcb238
change --prefixes to --nameprefixes
2008-06-06 18:53:08 +00:00
Alasdair Kergon
6196ac7995
Initialise params buffer to empty string in _emit_segment.
2008-06-05 19:10:35 +00:00
Alasdair Kergon
0c6271dabc
Skip add_dev_node when ioctls disabled.
...
Make dm_hash_iter safe against deletion.
Accept a NULL pointer to dm_free silently.
2008-05-21 16:14:46 +00:00
Alasdair Kergon
93cda8b6ec
Add 3 new reporting colums: tables_loaded, readonly, suspended.
2008-04-21 13:16:30 +00:00
Alasdair Kergon
bb5e930684
Add --prefixes to dmsetup
...
E.g. dmsetup info -c --prefixes
Again, might change the name of this option.
2008-04-21 11:59:22 +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
b59fce4393
post-release
2008-04-10 18:04:31 +00:00
Alasdair Kergon
8674a25eb8
pre-release
2008-04-10 18:00:45 +00:00
Jim Meyering
ed56aed8eb
Remove redundant if-before-free tests.
2008-02-15 14:14:58 +00:00
Alasdair Kergon
05ed5c0d74
Use log_warn for reporting field help text instead of log_print.
2008-01-20 01:14:38 +00:00
Jonathan Earl Brassow
0336bc9de9
- The automatic log module loading patch proposed for the upstream kernel
...
works on '-'s, not '_'s. This is due to the preference to have log
module file names that do not mix '_'s and '-'s.
2008-01-15 22:48:11 +00:00
Alasdair Kergon
48ba9734aa
post-release
2007-12-20 15:16:14 +00:00
Alasdair Kergon
897fc59f72
pre-release
2007-12-20 15:12:57 +00:00
Alasdair Kergon
50827a5f69
more readahead node fixes/debug messages
2007-12-14 19:49:27 +00:00
Alasdair Kergon
2d6444c924
Fix deptree to pass new name to _resume_node after a rename.
2007-12-14 17:57:04 +00:00
Alasdair Kergon
1d2675d9aa
Add node operation stack debug messages.
2007-12-14 17:26:09 +00:00
Alasdair Kergon
ad98990a8e
Report error when empty device name passed to readahead functions.
2007-12-13 02:25:45 +00:00
Alasdair Kergon
556a4a2395
clarify
2007-12-05 22:45:56 +00:00
Alasdair Kergon
fb806f61d4
Fix minimum readahead debug message.
2007-12-05 18:57:34 +00:00
Alasdair Kergon
6ce306661c
post-release
2007-12-05 17:14:30 +00:00
Alasdair Kergon
3c08ff94d4
pre-release
2007-12-05 17:05:04 +00:00
Alasdair Kergon
82bb0e8dda
fix ioctls to use long not int
...
update dm-ioctl.h after compat tidy-up
2007-12-05 14:11:26 +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
Petr Rockai
8c6f96faab
Fix a possible double-free in libdevmapper-event.
2007-11-27 12:26:06 +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
a3d3ce82e4
Fix configure --with-dmeventd-path substitution.
2007-10-10 00:02:03 +00:00
Jim Meyering
d4b1003a97
Allow $DM_DEV_DIR envvar to override default of "/dev".
...
* dmsetup/dmsetup.c (DEV_PATH): Remove definition.
(parse_loop_device_name): Add parameter: dev_dir.
Declare the "dev" parameter to be "const".
Use dev_dir, not DEV_PATH. Handle the case in which dev_dir
does not end in a "/".
(_get_abspath): Declare "path" parameter "const", to match.
(_process_losetup_switches): Add parameter: dev_dir.
Pass dev_dir to parse_loop_device_name.
(_process_switches): Add parameter: dev_dir.
Pass dev_dir to _process_losetup_switches.
(main): Set dev_dir from the DM_DEV_DIR envvar, else to "/dev".
Call dm_set_dev_dir.
* lib/libdm-common.c (dm_set_dev_dir): Rewrite to be careful
about boundary conditions, now that dev_dir may be tainted.
* man/dmsetup.8: Mention $DM_DEV_DIR.
Author: Jim Meyering <meyering@redhat.com>
2007-10-09 12:14:48 +00:00
Jim Meyering
c8c4dbb409
Create a symlink, e.g., libdevmapper.so.1.02, in the build dir,
...
alongside the .so file. This helps build dynamically linked LVM.
* lib/Makefile.in (VERSIONED_SHLIB): Define.
* make.tmpl.in (TARGETS): Append $(VERSIONED_SHLIB).
($(VERSIONED_SHLIB)): New rule.
Author: Jim Meyering <jim@meyering.net>
2007-09-18 13:02:58 +00:00
Jim Meyering
06c69c56ba
Avoid static link failure with some SELinux libraries.
2007-08-21 20:32:29 +00:00
Alasdair Kergon
ebc26c7421
Remove obsolete dmfs code from tree and update INSTALL.
2007-08-21 18:41:58 +00:00
Alasdair Kergon
a50957443e
post-release
2007-08-21 17:03:07 +00:00
Alasdair Kergon
a6a52a128b
pre-release
2007-08-21 16:33:18 +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
fbccd12924
Update to use autoconf 2.61, while still supporting 2.57.
2007-08-14 19:11:31 +00:00
Alasdair Kergon
541ea4dc63
improve changelog
2007-08-06 13:09:46 +00:00
Petr Rockai
eec17858c4
Fix a possible segfault in libdevmapper-event. Thanks to Brian J. Wood
...
for noticing this.
2007-08-02 22:31:59 +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
06fe319347
Make the libdevmapper version of create_dir equivalent to the LVM2 one.
...
(_create_dir_recursive): Refrain from logging a mkdir failure due to EROFS.
Patch by Jun'ichi Nomura.
2007-07-28 10:27:34 +00:00
Jim Meyering
9dd7e3fb24
Introduce log_sys_* macros from LVM2.
...
Convert existing "<string>: <function> failed: <strerror>" type messages
to use this macro. Patch by Jun'ichi Nomura.
2007-07-28 10:23:02 +00:00
Jim Meyering
6fa6ce35da
libdevmapper, dmeventd: be paranoid about detecting write failure
...
* dmeventd/dmeventd.c (_set_oom_adj): When writing to /proc/self/oom_adj,
detect failure even if it's hidden behind ferror. [Using dm_fclose's
extra ferror test here is probably not needed, since the amount written
is nowhere near BUFSIZ, but use it regardless, for consistency. ]
* lib/fs/libdevmapper.c (do_suspend): Detect fclose failure when
writing to suspend.
2007-07-24 14:16:48 +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
cbfe6e8fcc
post-release
2007-07-13 16:10:24 +00:00
Alasdair Kergon
5571ff35d8
pre-release
2007-07-13 16:07:30 +00:00
Petr Rockai
5ee976d276
Make warnings go to stderr. Adds log_warn macro for that purpose,
...
log_print continues to print to stdout.
2007-06-28 17:27:02 +00:00
Alasdair Kergon
094e9fb45d
Fix dmsetup -o devno string termination. (1.02.20)
2007-06-19 15:47:20 +00:00
Alasdair Kergon
972dc39d00
post-release
2007-06-15 20:49:30 +00:00
Alasdair Kergon
dd2a3f40e1
pre-release
2007-06-15 19:05:02 +00:00
Alasdair Kergon
78f76c1690
Fix default dmsetup report buffering and add --unbuffered.
...
Add tree-based and dependency fields to dmsetup reports.
2007-06-15 18:20:28 +00:00
Alasdair Kergon
2155c93426
Add capability for tree-based fields to dmsetup reports.
2007-06-11 13:20:29 +00:00
Alasdair Kergon
3934c1d437
post-release
2007-04-27 20:58:45 +00:00
Alasdair Kergon
e366b68ad3
pre-release
2007-04-27 20:47:14 +00:00
Alasdair Kergon
a249de3b72
Standardise protective include file #defines.
2007-04-27 19:07:43 +00:00
Alasdair Kergon
b9f5a18a76
Add regex functions to library.
2007-04-27 18:40:23 +00:00
Alasdair Kergon
d7ba0e01a5
Avoid trailing separator in reports when there are hidden sort fields.
2007-04-27 15:22:27 +00:00
Alasdair Kergon
b6172b53fd
Fix segfault in 'dmsetup status' without --showkeys against crypt target. [nec]
2007-04-27 15:12:26 +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
Petr Rockai
228486a971
Fix some memory leaks in dmeventd.
2007-04-23 15:06:03 +00:00
Alasdair Kergon
369ab1e0b2
Introduce _add_field() and _is_same_field() to libdm-report.c.
2007-04-19 20:24:00 +00:00
Milan Broz
2e21519a10
Fix libdevmapper-event memory leaks
2007-04-19 19:10:19 +00:00
Alasdair Kergon
bf83527b64
Remove unnecessary memset() return value checks. [Jim Meyering]
2007-03-16 14:36:14 +00:00
Alasdair Kergon
b1b6c97f7c
Fix a few leaks in reporting error paths.
2007-02-14 15:12:16 +00:00
Alasdair Kergon
baee28ab5c
post-release
2007-02-13 16:16:15 +00:00
Alasdair Kergon
83edf68ff9
pre-release
2007-02-13 16:12:24 +00:00
Alasdair Kergon
a223c3fea3
Improve dmeventd messaging protocol: drain pipe and tag messages.
2007-02-02 17:08:51 +00:00
Alasdair Kergon
b881c372bc
post-release
2007-01-29 20:25:19 +00:00
Alasdair Kergon
94c5e7deb0
pre-release
2007-01-29 19:57:24 +00:00
Alasdair Kergon
c344766f3c
Add recent reporting options to dmsetup man page.
...
Revise some report fields names.
2007-01-29 19:35:24 +00:00
Alasdair Kergon
cd79e58eda
Add dmsetup 'help' command and update usage text.
2007-01-29 18:18:41 +00:00
Alasdair Kergon
6fa801f3d8
reorder report field definitions
2007-01-29 17:45:32 +00:00
Alasdair Kergon
684eecba1d
Use fixed-size fields in report interface.
2007-01-29 17:23:54 +00:00
Alasdair Kergon
80ed029c17
post-release
2007-01-25 23:40:33 +00:00
Alasdair Kergon
34a74e81e3
pre-release
2007-01-25 23:36:59 +00:00
Alasdair Kergon
d851289d8a
Add some missing close() and fclose() return value checks.
2007-01-25 14:16:20 +00:00
Alasdair Kergon
d6d597e3dd
Migrate dmsetup column-based output over to new libdevmapper report framework.
2007-01-24 18:09:07 +00:00