Alasdair Kergon
7f722fe7d3
Fix --addtag to drop @ prefix from name
2007-11-15 21:59:11 +00:00
Alasdair Kergon
2e379cb8a5
Accept sizes with --readahead argument.
...
Store size arguments as sectors internally.
2007-11-14 00:08:25 +00:00
Alasdair Kergon
c0eff8a07f
Enhance the management of readahead settings.
2007-11-09 16:51:54 +00:00
Jim Meyering
efd83567c9
Fix the fsadm build failure without using -llvm.
...
* lib/misc/util.c (last_path_component): Move definition to ...
* lib/misc/last-path-component.h (last_path_component): ...here.
New file. Make the function "static inline".
* include/.symlinks: Add last-path-component.h.
* lib/misc/util.h (last_path_component): Remove declaration.
* tools/fsadm/fsadm.c: Include "last-path-component.h".
* tools/lvmcmdline.c: Likewise.
Author: Jim Meyering <meyering@redhat.com>
2007-10-03 16:10:04 +00:00
Jim Meyering
aa40668e84
Don't emit a trailing newline to stderr.
...
* tools/lvmcmdline.c (_short_usage): Remove trailing "\n".
Spotted by Alasdair G. Kergon.
Author: Jim Meyering <jim@meyering.net>
2007-09-21 18:43:55 +00:00
Jim Meyering
3767e6e96f
Print --help output to stdout, not stderr.
...
* tools/lvmcmdline.c (_usage): Use log_print, not log_error.
Author: Jim Meyering <jim@meyering.net>
2007-09-21 18:06:56 +00:00
Jim Meyering
44976cef6c
After a diagnostic, suggest --help, rather than printing all --help output.
...
Print just one line:
Use `COMMAND --help' for more information.
after "real" diagnostic(s), rather than all of the usage lines.
Otherwise, the 30-40+ lines of --help output could obscure the real diagnostic.
Author: Jim Meyering <jim@meyering.net>
2007-09-21 18:06:33 +00:00
Dave Wysochanski
1bfc4335bb
Add %PVS extents option to lvresize, lvextend, and lvcreate.
2007-09-20 21:39:08 +00:00
Alasdair Kergon
c9bc7dd0b6
Clean up mirrorlog argument processing.
...
Only permit --force, --verbose and --debug arguments to be repeated.
2007-08-21 19:46:36 +00:00
Alasdair Kergon
3f507a26fb
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Dave Wysochanski
53fbce932b
Move lv_remove_single() into library (lv_manip.c, metadata-exported.h).
...
Move yes_no_prompt() into library (display.c, display.h).
Fixup includes as a result of movement of prior two functions.
Fixup force_t enum to be more descriptive.
2007-08-20 17:04:53 +00:00
Jim Meyering
b2cba098bb
Eliminate uses of strdup+basename. Use last_path_component instead.
...
* lib/misc/util.c, lib/misc/util.h (last_path_component): New files.
* lib/Makefile.in (SOURCES): Add misc/util.c.
* lib/misc/lib.h: Include "util.h".
* tools/fsadm/fsadm.c: Include "util.h". (_usage): Use last_path_component,
not basename.
* tools/lvmcmdline.c (_find_command, lvm2_main): Likewise.
* include/.symlinks: Add lib/misc/util.h.
2007-07-20 15:48:39 +00:00
Petr Rockai
764858fa12
Make warnings go to stderr. Change log_warn to that effect, log_print
...
continues to send messages to stdout.
2007-06-28 17:33:44 +00:00
Petr Rockai
10e4254e7d
Allow keyboard interrupts in yes_no_prompt(). Add code to toollib.c
...
loops and to pvcreate.c, lvchange.c and lvresize.c to handle
interrupted prompts.
2007-06-15 10:11:14 +00:00
Alasdair Kergon
dcdbbb3ecb
Add devices/preferred_names config regex list for displayed device names.
...
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
2007-04-26 16:44:59 +00:00
Alasdair Kergon
781f4971c6
Exclude readline support from lvm.static
2007-02-14 16:51:48 +00:00
Alasdair Kergon
f813d41a76
Add some missing close() and fclose() return code checks.
...
Fix exit statuses of reporting tools (2.02.19).
2007-01-25 14:37:48 +00:00
Alasdair Kergon
9d944d6cf9
Fix refresh_toolcontext() always to wipe persistent device filter cache.
...
Add is_long_lived to toolcontext.
2007-01-23 15:58:06 +00:00
Alasdair Kergon
fb875e0709
Fix --autobackup argument which could never disable backups.
2006-11-14 15:28:50 +00:00
Alasdair Kergon
997fa756ad
Add some missing bounds checks on 32 bit extent counters.
...
Add Petabyte and Exabyte support.
Fix lvcreate error message when 0 extents requested.
2006-11-10 18:24:11 +00:00
Alasdair Kergon
d305d655d4
Fix compiler warnings in percent arg. [pjc]
2006-10-02 16:15:03 +00:00
Alasdair Kergon
a4fef143cd
Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
...
e.g. lvcreate -l 100%FREE to create an LV using all available space.
lvextend -l 50%LV to increase an LV by 50% of its existing size.
lvcreate -l 20%VG to create an LV using 20% of the total VG size.
2006-09-26 09:35:43 +00:00
Alasdair Kergon
b0b60fafd5
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
a80afd7b4e
Move CMDLIB code into separate file and record whether static build.
2006-08-18 21:17:18 +00:00
Alasdair Kergon
df0a5561a1
Add --trustcache option to reporting commands in preparation for supporting
...
event-driven model. Without changes to the way the cache gets updated, the
option is currently unreliable without a global lock to prevent any lvm2
commands from running concurrently.
2006-08-01 14:56:33 +00:00
Alasdair Kergon
608eedf88d
Fix lvcreate corelog validation.
...
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-16 16:48:31 +00:00
Alasdair Kergon
b69ba36c2d
Add --nosync to lvcreate with LV flag NOTSYNCED.
2006-05-11 20:03:40 +00:00
Alasdair Kergon
45dca55fc8
Make SIZE_SHORT the default for display_size().
...
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
2006-05-09 21:23:51 +00:00
Alasdair Kergon
67eb7723d6
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
584b3e6642
Fix yes_no_prompt() error handling.
2005-08-31 19:32:10 +00:00
Alasdair Kergon
c37d723692
Move archiver code from tools into library.
2005-05-17 13:46:38 +00:00
Alasdair Kergon
a99b2ce167
Alignment tidying.
2005-04-06 13:47:41 +00:00
Alasdair Kergon
8b6d584529
Improve detection of external changes affecting internal cache.
2005-03-21 22:40:35 +00:00
Alasdair Kergon
0a7a1eff3f
Avoid some compiler warnings.
2005-03-10 22:34:17 +00:00
Alasdair Kergon
0fb114dede
Option to suppress warnings of file descriptors left open.
2005-03-03 22:09:20 +00:00
Alasdair Kergon
168baef433
Static binary invokes dynamic binary if appropriate.
2005-02-18 18:58:31 +00:00
Alasdair Kergon
cd2eac1032
lvm2cmd.so should skip the check for open fds.
2005-02-03 16:34:53 +00:00
Alasdair Kergon
3991f03202
Fix an error fprintf.
2004-12-22 21:47:31 +00:00
Alasdair Kergon
7e44dcc5bf
Additional device-handling debug messages.
...
Additional verbosity level -vvvv includes line numbers and backtraces.
Verbose messages now go to stderr not stdout.
Close any stray file descriptors before starting.
Refine partitionable checks for certain device types.
Allow devices/types to override built-ins.
2004-12-10 16:01:35 +00:00
Alasdair Kergon
60889c0c79
Also accept y/n with -ae.
2004-11-12 15:58:26 +00:00
Alasdair Kergon
73e7f5a0b0
Add initrd-lvm to list of recognised argv[0]s. [pld-linux]
2004-06-29 13:27:19 +00:00
Alasdair Kergon
150b350d31
Add local activation support.
2004-06-16 17:13:41 +00:00
Alasdair Kergon
3bc930ea7b
xxchange -ae to activation exclusively
2004-05-24 13:44:10 +00:00
Alasdair Kergon
fdf15caaff
Rename allocation policies; add --alloc to cmdline; LV inherits from VG.
2004-05-18 22:12:53 +00:00
Alasdair Kergon
2b780e70d1
indent
2004-05-11 18:45:11 +00:00
Alasdair Kergon
793ad1f2d4
Add --type to lvcreate/resize.
...
Add virtual segment types, zero and error.
A large sparse device can be constructed as a writeable snapshot of a large
zero device.
2004-05-11 16:01:58 +00:00
Alasdair Kergon
fc5c61cc8b
Begin to separate out segment types.
2004-05-04 21:25:57 +00:00
Alasdair Kergon
c3941941ce
Support tagged config files.
2004-05-04 18:28:15 +00:00
Alasdair Kergon
32667ca256
Option for auto-fallback to LVM1 tools if running 2.4 without device-mapper.
2004-04-08 15:23:23 +00:00
Alasdair Kergon
012ad2d423
More build fixes
2004-04-06 15:14:23 +00:00