summaryrefslogtreecommitdiffstats
path: root/tools/vgcfgrestore.c
Commit message (Collapse)AuthorAgeFilesLines
* config: add silent modeAlasdair G Kergon2012-08-251-1/+1
| | | | | | | | | | | | | | | | Accept -q as the short form of --quiet. Suppress non-essential standard output if -q is given twice. Treat log/silent in lvm.conf as equivalent to -qq. Review all log_print messages and change some to log_print_unless_silent. When silent, the following commands still produce output: dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, pvs, version, vgcfgrestore -l, vgdisplay, vgs. [Needs checking.] Non-essential messages are shifted from log level 4 to log level 5 for syslog and lvm2_log_fn purposes.
* The lvmetad client-side integration. Only active when use_lvmetad = 1 is set inPetr Rockai2012-02-231-0/+2
| | | | lvm.conf *and* lvmetad is running.
* Const fixingZdenek Kabelac2011-02-181-1/+1
| | | | | | | | | | | | | | | | Fixing some const warnings - with API change in: int vg_extend(struct volume_group *vg, int pv_count, const char *const *pv_names, Change is needed - as lvm2api expects const behaviour here. So vg_extend() is doing local strdup for unescaping. skip_dev_dir return const char* from const char* vg_name. Rest of the patch is cleanup of related warnings. Also using dm_report_filed_string() API change to simplify casting in _string_disp and _lvname_disp.
* Handle metadata with unknown segment types more gracefully.Petr Rockai2009-10-161-0/+2
|
* Add lots of missing stack debug messages to tools.Alasdair Kergon2009-09-141-3/+5
| | | | | Make readonly locking available as locking type 4. Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
* Fix error paths for vgcfgrestore when locking fails.Dave Wysochanski2009-08-131-2/+2
|
* Use log_error macro consistently throughout in place of log_err.Alasdair Kergon2009-07-151-2/+2
|
* Change lock ordering of vgcfgrestore to be consistent with other tools.Dave Wysochanski2009-07-101-6/+6
| | | | | | | Orphan lock is now obtained second and released first, and all tools are consistent in this regard. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
* Remove NON_BLOCKING lock flag from tools and set a policy to auto-set.Dave Wysochanski2009-05-131-2/+2
| | | | | | | | | As a simplification to the tools and further liblvm, this patch pushes the setting of NON_BLOCKING lock flag inside the lock_vol() call. The policy we set is if any existing VGs are currently locked, we set the NON_BLOCKING flag. Should be no functional change.
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Fix orphan-related locking in pvdisplay and pvs.Alasdair Kergon2007-11-021-4/+4
| | | | | | | | Fix missing VG unlocks in some pvchange error paths. Add some missing validation of VG names. Rename validate_vg_name() to validate_new_vg_name(). Change orphan lock to VG_ORPHANS. Change format1 to use ORPHAN as orphan VG name.
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Fix a couple benign warnings by adding variable initializations.Dave Wysochanski2007-06-131-1/+1
|
* Allow vgcfgrestore to list metadata backup files using -fBryn M. Reeves2007-06-081-10/+11
|
* Support the /dev/mapper prefix on most command lines.Alasdair Kergon2007-03-091-1/+1
|
* Add skip_dev_dir() to process command line VGs.Alasdair Kergon2006-08-251-4/+1
|
* Update copyright notices.Alasdair Kergon2004-03-301-2/+11
|
* More consistent error code usage.Alasdair Kergon2003-10-211-2/+2
|
* Generalise 'invalid chars' error mesg to just say 'invalid'Alasdair Kergon2003-09-151-2/+1
|
* LV name validationAlasdair Kergon2003-02-031-1/+1
|
* Add success message; validate given VG name.Alasdair Kergon2003-01-171-7/+22
|
* Some new features.Alasdair Kergon2002-11-181-3/+15
|
* agk, I recall you saying you had a massive commit pending; if you need meAndres Salomon2002-10-271-0/+3
| | | | | | | | | | | to back this out so you can do that commit, let me know. Also, if there's an issue with the error message that's displayed, just change it in tools.h. This causes a "device-mapper driver/module not loaded?" error message to be displayed for the commands that require dm-mod, if the tools can't get the driver version. It's not done for commands that don't require dm-mod. This should clear up some problems people have had attempting to use lvm2 without rtfm'ing.
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-4/+4
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-8/+7
| | | | link some globals that the tools need into that structure.
* o Added functions to display what's in the archive.Joe Thornber2002-02-111-0/+11
| | | | | | o For now vgcfgrestore -l <vg> displays this list. A bit hacky, but it'll get better.
* o Actually check in vgcfgrestore.Joe Thornber2002-01-151-0/+26