Peter Rajnoha
99b7ce7bf5
Fix semaphore includes in dmsetup for udev sync.
2009-08-06 15:56:50 +00:00
Peter Rajnoha
afc8c05f7f
Add 'udevcookies' command for dmsetup.
2009-08-06 15:05:10 +00:00
Peter Rajnoha
886e528490
Add 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in libdevmapper.h.
2009-08-06 15:04:30 +00:00
Alasdair Kergon
9abda62c5b
Manage without dm_udev_cleanup?
2009-08-03 18:01:45 +00:00
Alasdair Kergon
bce8cac1f4
cleanup some ignored return values & 'stack's
2009-08-03 11:20:15 +00:00
Alasdair Kergon
3b6a147653
Add udevcomplete and --noudevwait to dmsetup.
2009-07-31 17:51:45 +00:00
mpatocka
31b3571d31
Change exit() to _exit() in the child process. exit flushes stdio file buffers,
...
_exit doesn't. If there were some open files, an error in exec and subsequent
exit() would cause the buffers to be flushed twice.
Example:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main()
{
printf("buu");
if (!fork()) {
execl("/bin/true-not-exists", "/bin/true", NULL);
exit(1);
}
wait(NULL);
return 0;
}
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com
---
daemons/dmeventd/libdevmapper-event.c | 2 +-
lib/misc/lvm-exec.c | 2 +-
test/harness.c | 3 ++-
tools/dmsetup.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
2009-07-13 21:26:41 +00:00
Alasdair Kergon
f10d82dc30
Add splitname.
2009-06-03 20:44:42 +00:00
Alasdair Kergon
5ec942fb2a
Add subsystem, vg_name, lv_name, lv_layer fields to dmsetup reports.
2009-06-03 18:35:39 +00:00
Peter Rajnoha
14bd66805e
Fix segfault when using -U, -G and -M options in dmsetup.
2009-04-24 11:30:49 +00:00
Alasdair Kergon
424bdade0b
drop explicit libdevmapper.h
2008-10-30 17:52:06 +00:00
Alasdair Kergon
43924e31b8
Split out dm-logging.h from log.h
2008-10-30 17:24:04 +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
44f3fcb238
change --prefixes to --nameprefixes
2008-06-06 18:53:08 +00:00
Alasdair Kergon
896b04a846
Use 'active' for !suspended as the code already uses that.
2008-04-21 16:57:11 +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
08e5bd5b72
Calculate string size within dm_pool_grow_object.
2008-04-19 15:50:18 +00:00
Alasdair Kergon
3c08ff94d4
pre-release
2007-12-05 17:05:04 +00:00
Alasdair Kergon
105c2b1eea
read_ahead in report with underscore to match lvm2 field
2007-12-05 14:42:10 +00:00
Alasdair Kergon
0ba7d05ea7
fixme
2007-12-03 22:53:04 +00:00
Alasdair Kergon
5a4c5b4155
fixes
2007-12-03 22:48:36 +00:00
Alasdair Kergon
a3c23f650c
read_ahead node ops
2007-11-30 14:59:57 +00:00
Alasdair Kergon
c96506f22c
refine specification of dmsetup readahead
2007-11-29 14:44:28 +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
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
Alasdair Kergon
1ad58e1121
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-21 16:26:07 +00:00
Alasdair Kergon
779047f8c9
revert accidental change
2007-06-19 16:50:38 +00:00
Alasdair Kergon
094e9fb45d
Fix dmsetup -o devno string termination. (1.02.20)
2007-06-19 15:47:20 +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
d3f157f08a
configure.h isn't a system header
2007-04-27 18:01:45 +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
Alasdair Kergon
b1b6c97f7c
Fix a few leaks in reporting error paths.
2007-02-14 15:12:16 +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
67895de0bc
help on help
2007-01-29 18:45:08 +00:00
Alasdair Kergon
ff00cb6990
help unused attr
2007-01-29 18:43:27 +00:00
Alasdair Kergon
2cc75c11ed
add help -c for field list
2007-01-29 18:37:57 +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
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
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
392e1bc2e8
more little fixes
2007-01-16 21:13:07 +00:00
Alasdair Kergon
f48648552e
Fix a malloc error path in dmsetup message.
2007-01-15 22:05:50 +00:00
Alasdair Kergon
2179a72c3a
Suppress encryption key in 'dmsetup table' output unless --showkeys supplied.
2006-10-19 15:34:50 +00:00