Jim Meyering
448ef456ff
Remove redundant if-before-free tests.
2008-02-15 14:14:58 +00:00
Alasdair Kergon
ad1fc08312
Use log_warn for reporting field help text instead of log_print.
2008-01-20 01:14:38 +00:00
Jonathan Earl Brassow
d6d4661517
- 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
72199adfc3
post-release
2007-12-20 15:16:14 +00:00
Alasdair Kergon
e8a4c1701a
pre-release
2007-12-20 15:12:57 +00:00
Alasdair Kergon
fc795d8701
more readahead node fixes/debug messages
2007-12-14 19:49:27 +00:00
Alasdair Kergon
bafa2f39cf
Fix deptree to pass new name to _resume_node after a rename.
2007-12-14 17:57:04 +00:00
Alasdair Kergon
4a41a93a7a
Add node operation stack debug messages.
2007-12-14 17:26:09 +00:00
Alasdair Kergon
3a2234162d
Report error when empty device name passed to readahead functions.
2007-12-13 02:25:45 +00:00
Alasdair Kergon
482904cf86
clarify
2007-12-05 22:45:56 +00:00
Alasdair Kergon
de4ddace2e
Fix minimum readahead debug message.
2007-12-05 18:57:34 +00:00
Alasdair Kergon
3410687443
post-release
2007-12-05 17:14:30 +00:00
Alasdair Kergon
8611f8851e
pre-release
2007-12-05 17:05:04 +00:00
Alasdair Kergon
fec8f8382a
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
52b8440916
add read_ahead functions to library and dmsetup --readahead
...
(Not live yet.)
2007-11-27 20:57:05 +00:00
Petr Rockai
cd1a7e80c0
Fix a possible double-free in libdevmapper-event.
2007-11-27 12:26:06 +00:00
Alasdair Kergon
6dd60469ba
Add DM_READ_AHEAD_MINIMUM_FLAG
2007-11-12 20:47:18 +00:00
Alasdair Kergon
14772580cd
Define DM_READ_AHEAD_AUTO and DM_READ_AHEAD_NONE.
2007-11-09 16:52:36 +00:00
Alasdair Kergon
5ca98cc229
Fix configure --with-dmeventd-path substitution.
2007-10-10 00:02:03 +00:00
Jim Meyering
06b8fee542
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
78ecdf8d65
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
d65b20980b
Avoid static link failure with some SELinux libraries.
2007-08-21 20:32:29 +00:00
Alasdair Kergon
1f84815c12
Remove obsolete dmfs code from tree and update INSTALL.
2007-08-21 18:41:58 +00:00
Alasdair Kergon
6d7a6c4cf4
post-release
2007-08-21 17:03:07 +00:00
Alasdair Kergon
9cab88c59f
pre-release
2007-08-21 16:33:18 +00:00
Alasdair Kergon
147d5faccf
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-21 16:26:07 +00:00
Alasdair Kergon
7a197a6220
Update to use autoconf 2.61, while still supporting 2.57.
2007-08-14 19:11:31 +00:00
Alasdair Kergon
ee80c0f0e3
improve changelog
2007-08-06 13:09:46 +00:00
Petr Rockai
674cfe8071
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
3f311f1daa
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
1c200869d9
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
87518d850b
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
f28fd56f76
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
0c3cd7e292
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
a7ed0103ef
post-release
2007-07-13 16:10:24 +00:00
Alasdair Kergon
10fb6b1b93
pre-release
2007-07-13 16:07:30 +00:00
Petr Rockai
ba117ad80e
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
64f0efd33f
Fix dmsetup -o devno string termination. (1.02.20)
2007-06-19 15:47:20 +00:00
Alasdair Kergon
6dee7d312a
post-release
2007-06-15 20:49:30 +00:00
Alasdair Kergon
8f1fb4ada0
pre-release
2007-06-15 19:05:02 +00:00
Alasdair Kergon
117d85978a
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
41d8dcd802
Add capability for tree-based fields to dmsetup reports.
2007-06-11 13:20:29 +00:00
Alasdair Kergon
ffd5c5c86c
post-release
2007-04-27 20:58:45 +00:00
Alasdair Kergon
e3a12d14e6
pre-release
2007-04-27 20:47:14 +00:00
Alasdair Kergon
42c798229f
Standardise protective include file #defines.
2007-04-27 19:07:43 +00:00
Alasdair Kergon
38862fcd3f
Add regex functions to library.
2007-04-27 18:40:23 +00:00
Alasdair Kergon
af998ff6c2
Avoid trailing separator in reports when there are hidden sort fields.
2007-04-27 15:22:27 +00:00
Alasdair Kergon
d59b2474e1
Fix segfault in 'dmsetup status' without --showkeys against crypt target. [nec]
2007-04-27 15:12:26 +00:00
Alasdair Kergon
8d2b0f24d3
Deal with some more compiler warnings. Hope this doesn't break anything...
2007-04-27 14:52:41 +00:00
Petr Rockai
727f266227
Fix some memory leaks in dmeventd.
2007-04-23 15:06:03 +00:00
Alasdair Kergon
7b74504f40
Introduce _add_field() and _is_same_field() to libdm-report.c.
2007-04-19 20:24:00 +00:00
Milan Broz
0329281b49
Fix libdevmapper-event memory leaks
2007-04-19 19:10:19 +00:00
Alasdair Kergon
c2784df48f
Remove unnecessary memset() return value checks. [Jim Meyering]
2007-03-16 14:36:14 +00:00
Alasdair Kergon
012869d6d2
Fix a few leaks in reporting error paths.
2007-02-14 15:12:16 +00:00
Alasdair Kergon
2f2c993235
post-release
2007-02-13 16:16:15 +00:00
Alasdair Kergon
187c689f1c
pre-release
2007-02-13 16:12:24 +00:00
Alasdair Kergon
112d09deb1
Improve dmeventd messaging protocol: drain pipe and tag messages.
2007-02-02 17:08:51 +00:00
Alasdair Kergon
3a7ec38f5a
post-release
2007-01-29 20:25:19 +00:00
Alasdair Kergon
096470d41a
pre-release
2007-01-29 19:57:24 +00:00
Alasdair Kergon
34c710712d
Add recent reporting options to dmsetup man page.
...
Revise some report fields names.
2007-01-29 19:35:24 +00:00
Alasdair Kergon
e3f6460b0d
Add dmsetup 'help' command and update usage text.
2007-01-29 18:18:41 +00:00
Alasdair Kergon
95b424702a
reorder report field definitions
2007-01-29 17:45:32 +00:00
Alasdair Kergon
9f069f7bef
Use fixed-size fields in report interface.
2007-01-29 17:23:54 +00:00
Alasdair Kergon
67fa4fd49e
post-release
2007-01-25 23:40:33 +00:00
Alasdair Kergon
667eb7758d
pre-release
2007-01-25 23:36:59 +00:00
Alasdair Kergon
232da7ecc7
Add some missing close() and fclose() return value checks.
2007-01-25 14:16:20 +00:00
Alasdair Kergon
d336842067
Migrate dmsetup column-based output over to new libdevmapper report framework.
2007-01-24 18:09:07 +00:00
Alasdair Kergon
85feafd996
Add descriptions to reporting field definitions.
2007-01-23 19:18:52 +00:00
Alasdair Kergon
d28dfb5720
add a dso-private variable to dmeventd interface
...
more inline docn
2007-01-23 17:38:39 +00:00
Alasdair Kergon
4dcaa2300c
Add dm_event_handler_[gs]et_timeout functions.
...
Streamline dm_report_field_* interface.
2007-01-22 15:03:57 +00:00
Alasdair Kergon
fcdf2e09a2
Add cmdline debug & version options to dmeventd.
...
Fix oom_adj handling.
2007-01-19 17:22:17 +00:00
Alasdair Kergon
866a1a0836
Add DM_LIB_VERSION definition to configure.h.
2007-01-19 15:53:01 +00:00
Alasdair Kergon
09e206d393
Suppress 'Unrecognised field' error if report field is 'help'.
2007-01-18 22:15:04 +00:00
Alasdair Kergon
03c6979264
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
07473c2be3
post-release
2007-01-17 17:56:15 +00:00
Alasdair Kergon
c3afa8dff4
pre-release
2007-01-17 17:51:51 +00:00
Alasdair Kergon
61997bb9bb
Add basic reporting functions to libdevmapper.
2007-01-16 18:04:15 +00:00
Alasdair Kergon
528329f199
Fix a malloc error path in dmsetup message.
2007-01-15 22:05:50 +00:00
Alasdair Kergon
931d24a4b1
More libdevmapper-event interface changes and fixes.
...
Rename dm_saprintf() to dm_asprintf().
2007-01-15 18:21:01 +00:00
Alasdair Kergon
080f3fa1e0
Report error if NULL pointer supplied to dm_strdup_aux().
2007-01-15 14:39:12 +00:00
Alasdair Kergon
c8ee38201d
Reinstate dm_event_get_registered_device
2007-01-12 20:22:11 +00:00
Alasdair Kergon
99a4014f06
post-release
2007-01-11 23:19:08 +00:00
Alasdair Kergon
96710ad8dd
pre-release
2007-01-11 22:49:43 +00:00
Alasdair Kergon
3165248642
Lots of dmeventd-related changes.
2007-01-11 21:54:53 +00:00
Alasdair Kergon
4594807a24
Use CFLAGS when linking so mixed sparc builds can supply -m64.
2007-01-11 16:23:22 +00:00
Alasdair Kergon
b9ffd32cd3
Add dm_tree_use_no_flush_suspend().
2007-01-09 19:44:07 +00:00
Alasdair Kergon
5b95f17814
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
0c8569edea
Fix dmeventd mirror to cope if monitored device disappears.
2006-12-20 14:35:02 +00:00
Alasdair Kergon
9a81f9fe3f
post-release
2006-11-28 22:51:01 +00:00
Alasdair Kergon
794aa5063c
pre-release
2006-11-28 22:49:58 +00:00
Alasdair Kergon
3488c9b338
Update dmsetup man page (setgeometry & message)
2006-11-23 20:34:16 +00:00
Alasdair Kergon
981bf64fda
getline debug free
2006-10-19 16:50:05 +00:00
Alasdair Kergon
475be6ab45
Suppress encryption key in 'dmsetup table' output unless --showkeys supplied.
2006-10-19 15:34:50 +00:00
Alasdair Kergon
a8e13f0505
post-release.
...
Note that I've dropped the 2.4 kernel files from the release tarballs now.
2006-10-13 19:01:30 +00:00
Alasdair Kergon
905bdb2455
pre-release
2006-10-13 18:43:53 +00:00
Alasdair Kergon
b700541f3b
Avoid deptree attempting to suspend a device that's already suspended.
2006-10-13 14:03:35 +00:00
Alasdair Kergon
89a4e806e9
post-release
2006-10-12 18:20:45 +00:00
Alasdair Kergon
4c69dc9551
.
2006-10-12 17:42:40 +00:00
Alasdair Kergon
b504894ad4
missing mesg
2006-10-12 17:41:21 +00:00
Alasdair Kergon
988651541d
pre-release
2006-10-12 17:37:42 +00:00