summaryrefslogtreecommitdiffstats
path: root/tools/lvm.c
Commit message (Collapse)AuthorAgeFilesLines
...
* o Removed the -z (suspend) option from the toolsJoe Thornber2002-02-181-1/+1
| | | | | | | o New function: int lv_setup_cow_store(struct logical_volume *lv) This zeroes the start of the cow device. o Made lvcreate call above fn.
* o Add support for the -s and -c flags to lvcreate.Joe Thornber2002-02-181-1/+0
|
* Second path on "pvcreate -s"Heinz Mauelshagen2002-02-151-0/+1
|
* Run through indent - no (intentional) changes to any code.Alasdair Kergon2002-02-111-55/+45
|
* Preparation for an LVM2 liblvm - pass cmd_context into each tool andAlasdair Kergon2002-02-111-41/+36
| | | | link some globals that the tools need into that structure.
* o Support locking with local lock filesAlasdair Kergon2002-02-111-0/+11
| | | | o Disable control-c during updates (except if blocked waiting for a lock)
* o Add cmd_line field to struct cmd_contextJoe Thornber2002-02-081-1/+37
| | | | | | | | | | | | | | | | | | o Text format now has a description and time field at the top level. o archiving and backup set the description appropriately. eg, for an archive: description = "Created *before* executing 'lvextend test_vg/lvol0 -l +1'." creation_time = 1013166332 for a backup: description = "Created *after* executing 'lvextend test_vg/lvol0 -l +1'." creation_time = 1013166332 This is preparing the way for a simple vgcfgundo command.
* Basic support for persistent minor numbers;Alasdair Kergon2002-02-011-0/+15
| | | | | | | | | | | | | | | | | | slightly different from the current LVM1 method. lvcreate --persistent y --minor 10 (to specify when created) lvchange --persistent n (to turn off) lvchange --persistent y --minor 11 (to change) --persistent uses a new LV status flag stored on disk minor number is stored on disk the same way as LVM1 does (but major number stored is 0; any LVM1 major/minor setting gets lost) lvchange -ay --minor 12 (to activate using minor 12, regardless of the on-disk setting, which doesn't get changed) --minor == -m --persistent == -M
* "exit" means "quit" (lamer)Alasdair Kergon2002-01-311-2/+2
|
* o A vgimport implementationAlasdair Kergon2002-01-291-1/+4
| | | | | o Require -a or <list of vgs> parameters with vgexport/vgimport o Allow pvcreate -ff to destroy exported/partial VGs
* o Basic support for exporting (but importing not completed yet).Alasdair Kergon2002-01-291-0/+7
| | | | | o When volume group does not have write flag set, prevent changes to it. o Preparation for partial activation (not completed yet).
* Customisable message output prefix / indentation.Alasdair Kergon2002-01-221-1/+10
|
* No need for file output to default to stderr now that log file can beAlasdair Kergon2002-01-211-3/+0
| | | | specified in config file.
* o Allow fractional parts for size args. eg, lvcreate -L 34.4MJoe Thornber2002-01-211-2/+25
| | | | o Fix a couple of bugs related to the earlier lv_list change
* Allow syslog facility to be set, or turned off, from the config file.Alasdair Kergon2002-01-181-5/+17
|
* Support --version argument and 'version' shell command.Alasdair Kergon2002-01-171-3/+15
|
* Move test flag from log to global section of config file.Alasdair Kergon2002-01-161-1/+2
|
* o More comprehensive config parameter debugging messages.Alasdair Kergon2002-01-151-4/+12
| | | | | o Make /proc configurable. o Review hard-coded "/dev"s - made 2 more of them configurable.
* o missing labeller freeAlasdair Kergon2002-01-151-0/+1
| | | | | | | o updated vgcfgrestore args o change _check_for_open_devices only to check devices present in the hash table instead of using dev_iter which triggers a full scan even when only displaying command line help
* o Actually check in vgcfgrestore.Joe Thornber2002-01-151-1/+2
|
* o vgcfgrestore works ! (with the couple of examples I tried).Joe Thornber2002-01-151-4/+45
|
* Allow for multiple spellings / backwards compatibility of renamedAlasdair Kergon2002-01-101-8/+35
| | | | | | | command line options. vgchange --resizeable y pvchange --allocatable y But --allocation is still allowed for both (as LVM1) and --resizable is OK.
* o Rename many occurrences of 'backup' to 'archive' to reduce confusion.Alasdair Kergon2002-01-091-9/+22
| | | | | | | o Extract file creation/renaming code into a library and change backup code to use it too. o Support umask. o Bring lvm.conf man page up-to-date.
* Add archiving.Alasdair Kergon2002-01-091-3/+7
|
* Another attempt to support both readline versions.Alasdair Kergon2002-01-081-11/+10
|
* call archive_exit() & backup_exit() on exitAlasdair Kergon2002-01-081-0/+2
|
* fixes for compilationAlasdair Kergon2002-01-071-1/+2
|
* Sync tidy.Alasdair Kergon2002-01-071-1/+2
|
* o tidy up renaming of archive files.Joe Thornber2002-01-071-0/+7
|
* o sync tool changes for backup stuff.Joe Thornber2002-01-071-26/+68
|
* o sync laptop to test machine.Joe Thornber2002-01-071-51/+49
|
* o Add autobackup support to tools (follows most vg_write calls).Alasdair Kergon2001-12-311-18/+31
| | | | | | o Skip autobackup when in test mode. o Set test mode from config file. o Create system/backup dirs if not present (unless LVM_SYSTEM_DIR holds "").
* vgcache.h inclusion (avoid compiler warning)Alasdair Kergon2001-12-311-2/+0
|
* o Use lvm_snprintf wherever return value is usedAlasdair Kergon2001-12-311-5/+18
| | | | o Add parameters to set retention limits for backups
* o Allow more default values to be overridden from config file.Alasdair Kergon2001-12-311-24/+44
| | | | o Cope with both the readline versions used around here.
* o Added a quick vgcfgbackup, needs parameters as yet.Joe Thornber2001-12-201-11/+2
|
* o sync backup changesJoe Thornber2001-12-201-1/+9
|
* o history is now saved in ~/.lvm_historyJoe Thornber2001-12-171-0/+41
|
* o Shuffled completion functions around so we dont have to declare themJoe Thornber2001-12-171-27/+25
| | | | | | | | at the top of the file. o Changed completion_matches -> rl_completion_matches, and added some consts. This will probably break things on pre readline 4.2 systems.
* o Changed the macro name in args.h from 'xx' to 'arg'Joe Thornber2001-12-171-29/+58
| | | | | | | | o There is now a _default_debug, and _default_verbose level, when using lvm interactively -vv and -dd switches just effect the current command. o Added a --quiet switch which sets both verbose and debug to zero.
* o Use lvm_snprintfJoe Thornber2001-12-171-2/+3
|
* o Remove LVM_CONFIG_FILE environment variable.Joe Thornber2001-12-171-23/+60
| | | | | | | | | | | | o Introduced the LVM_SYSTEM_DIR variable. This makes more sense because the persistent cache, and backup directories are config specific. eg, I use /etc/lvm for running my real LV's but I have another directory /dev/lvm_loops that contains a config that allows only loopback devices, I use this for testing.
* I had another look at the argument processing code:Joe Thornber2001-12-171-5/+20
| | | | | | | | | | o You must list long args with no short option (eg. --version) at the front of the args.h file. o If an argument has no short option, set the short option in args.h to '\0' o The index into the 'the_args' var is now stored as the option value for getopt, iff there is no short opt.
* Add internal cache holding a 'hint' list of the PVs belonging to each VG.Alasdair Kergon2001-12-131-0/+2
| | | | | | | A substantial speed-up - particularly in readline mode. If the hints turn out to be wrong, the relevant parts get thrown away. vgscan destroys it totally. In both cases it then rebuilds itself as required.
* Add -t or --test arg to all tools that update metadata to avoidAlasdair Kergon2001-11-281-1/+4
| | | | committing metadata changes or (de)activating.
* o Make sure that every switch has a short option, even if it'sJoe Thornber2001-11-221-2/+2
| | | | | non-displayable so we can remove the pointer mangling that was breaking 64bit arch.s
* o activation & active status testsAlasdair Kergon2001-11-211-0/+3
| | | | | o lvdisplay fields from kernel o update lv->size on resize
* o Prefix static var with '_'Joe Thornber2001-11-141-4/+4
|
* Merge lvreduce & lvextend into lvresize.Alasdair Kergon2001-11-131-38/+23
|
* iospace restructuredAlasdair Kergon2001-11-121-18/+20
|