]> sourceware.org Git - lvm2.git/log
lvm2.git
22 years agoo Rename many occurrences of 'backup' to 'archive' to reduce confusion.
Alasdair Kergon [Wed, 9 Jan 2002 19:16:48 +0000 (19:16 +0000)]
o Rename many occurrences of 'backup' to 'archive' to reduce confusion.
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.

22 years agoAccept octal values for numbers (such as umask).
Alasdair Kergon [Wed, 9 Jan 2002 18:53:07 +0000 (18:53 +0000)]
Accept octal values for numbers (such as umask).

22 years agoo Let the comment wars begin.
Joe Thornber [Wed, 9 Jan 2002 14:14:07 +0000 (14:14 +0000)]
o  Let the comment wars begin.

22 years agoo new function backup_remove(const char *vg_name), to be called from vgremove.
Joe Thornber [Wed, 9 Jan 2002 14:07:49 +0000 (14:07 +0000)]
o  new function backup_remove(const char *vg_name), to be called from vgremove.

22 years agoo Reformat comments.
Joe Thornber [Wed, 9 Jan 2002 13:56:11 +0000 (13:56 +0000)]
o  Reformat comments.

22 years agoAdd archiving.
Alasdair Kergon [Wed, 9 Jan 2002 13:17:14 +0000 (13:17 +0000)]
Add archiving.

22 years agoo Try to improve NFS-safety for temporary file creation (unique name; O_APPEND
Alasdair Kergon [Wed, 9 Jan 2002 13:16:19 +0000 (13:16 +0000)]
o Try to improve NFS-safety for temporary file creation (unique name; O_APPEND
  + fcntl lock) and rename (using hard link), avoiding any "real" archive
  files ever being zero length.
o Fix filename parsing & ordered list handling.

22 years agoExplicitly close (=>flush) files.
Alasdair Kergon [Wed, 9 Jan 2002 13:07:03 +0000 (13:07 +0000)]
Explicitly close (=>flush) files.

22 years agoAllow pool_begin_object in empty pool.
Alasdair Kergon [Wed, 9 Jan 2002 13:06:02 +0000 (13:06 +0000)]
Allow pool_begin_object in empty pool.

22 years agoAnother attempt to support both readline versions.
Alasdair Kergon [Tue, 8 Jan 2002 19:17:08 +0000 (19:17 +0000)]
Another attempt to support both readline versions.

22 years agocall archive_exit() & backup_exit() on exit
Alasdair Kergon [Tue, 8 Jan 2002 18:14:04 +0000 (18:14 +0000)]
call archive_exit() & backup_exit() on exit

22 years agoo Remove anomalous punctuation.
Joe Thornber [Tue, 8 Jan 2002 10:51:13 +0000 (10:51 +0000)]
o  Remove anomalous punctuation.

22 years agoo Introduction to pool for those without psychic powers.
Joe Thornber [Tue, 8 Jan 2002 10:47:17 +0000 (10:47 +0000)]
o  Introduction to pool for those without psychic powers.

22 years agofixes for compilation
Alasdair Kergon [Mon, 7 Jan 2002 23:28:25 +0000 (23:28 +0000)]
fixes for compilation

22 years agoSync.
Alasdair Kergon [Mon, 7 Jan 2002 23:04:48 +0000 (23:04 +0000)]
Sync.

22 years agoSync tidy.
Alasdair Kergon [Mon, 7 Jan 2002 22:49:04 +0000 (22:49 +0000)]
Sync tidy.

22 years agoIf a device somehow became suspended, lvchange -ay now reactivates it.
Alasdair Kergon [Mon, 7 Jan 2002 22:36:12 +0000 (22:36 +0000)]
If a device somehow became suspended, lvchange -ay now reactivates it.

22 years agoSupport for read-only.
Alasdair Kergon [Mon, 7 Jan 2002 22:28:36 +0000 (22:28 +0000)]
Support for read-only.

22 years agoMissing close() in error case.
Alasdair Kergon [Mon, 7 Jan 2002 22:25:57 +0000 (22:25 +0000)]
Missing close() in error case.

22 years agotidying
Alasdair Kergon [Mon, 7 Jan 2002 22:01:50 +0000 (22:01 +0000)]
tidying

22 years agoo vgcreate wasn't setting vg->cmd
Joe Thornber [Mon, 7 Jan 2002 15:27:55 +0000 (15:27 +0000)]
o  vgcreate wasn't setting vg->cmd

22 years agoo New function 'merge_segments'
Joe Thornber [Mon, 7 Jan 2002 15:08:28 +0000 (15:08 +0000)]
o  New function 'merge_segments'

o  Call said function at end of lv_extend

22 years agoo tidy up renaming of archive files.
Joe Thornber [Mon, 7 Jan 2002 14:21:33 +0000 (14:21 +0000)]
o  tidy up renaming of archive files.

22 years agoo sync tool changes for backup stuff.
Joe Thornber [Mon, 7 Jan 2002 11:12:11 +0000 (11:12 +0000)]
o  sync tool changes for backup stuff.

22 years agoo Added find_config_bool
Joe Thornber [Mon, 7 Jan 2002 10:23:52 +0000 (10:23 +0000)]
o  Added find_config_bool

22 years agoo Get format-text.c compiling.
Joe Thornber [Mon, 7 Jan 2002 09:16:20 +0000 (09:16 +0000)]
o  Get format-text.c compiling.

22 years agoo sync laptop to test machine.
Joe Thornber [Mon, 7 Jan 2002 09:05:31 +0000 (09:05 +0000)]
o sync laptop to test machine.

22 years agoImported man pages from LVM1 with some quick LVM2 updates.
Alasdair Kergon [Fri, 4 Jan 2002 20:35:19 +0000 (20:35 +0000)]
Imported man pages from LVM1 with some quick LVM2 updates.

22 years agoThe start of an lvm man page.
Alasdair Kergon [Fri, 4 Jan 2002 18:56:56 +0000 (18:56 +0000)]
The start of an lvm man page.

22 years agoDocument remaining configuration file parameters.
Alasdair Kergon [Fri, 4 Jan 2002 17:49:38 +0000 (17:49 +0000)]
Document remaining configuration file parameters.

22 years agoo Revert to the 6-4-4-4-4-4-6 format for uuid's
Joe Thornber [Fri, 4 Jan 2002 16:55:14 +0000 (16:55 +0000)]
o  Revert to the 6-4-4-4-4-4-6 format for uuid's

o  When reading a uuid all -'s are stripped, wherever they are.

22 years agoPut device name in quotes.
Alasdair Kergon [Thu, 3 Jan 2002 17:47:48 +0000 (17:47 +0000)]
Put device name in quotes.

22 years agoo High level archiving and backup functions.
Joe Thornber [Thu, 3 Jan 2002 15:46:48 +0000 (15:46 +0000)]
o  High level archiving and backup functions.

I've split the old autobackup function into two seperate areas:

'archiving' is performed *before* a vg configuration is changed.  This
produces a numbered backup in /etc/lvm/archive.

A 'backup' is performed *after* a vg change.  So the directory /etc/lvm/backup
will hold the  a copy of the current configuration.

22 years agostub for read-only functions with fs interface
Alasdair Kergon [Thu, 3 Jan 2002 15:12:02 +0000 (15:12 +0000)]
stub for read-only functions with fs interface

22 years agoFix final comma in arrays.
Alasdair Kergon [Thu, 3 Jan 2002 12:43:01 +0000 (12:43 +0000)]
Fix final comma in arrays.

22 years ago*** empty log message ***
Alasdair Kergon [Thu, 3 Jan 2002 12:39:04 +0000 (12:39 +0000)]
*** empty log message ***

22 years agoo Added -r, --read-only switch to dmsetup for use with create and reload.
Joe Thornber [Thu, 3 Jan 2002 10:39:21 +0000 (10:39 +0000)]
o  Added -r, --read-only switch to dmsetup for use with create and reload.

22 years agoo Allow the definition of read-only devices (ioctl interface only) (Joe)
Alasdair Kergon [Wed, 2 Jan 2002 19:01:09 +0000 (19:01 +0000)]
o Allow the definition of read-only devices (ioctl interface only)  (Joe)
o Add version number to ioctl structure with error on kernel/library mismatch

22 years agoo Added section on the syntax of the config file, with an informal grammar.
Joe Thornber [Wed, 2 Jan 2002 17:54:57 +0000 (17:54 +0000)]
o  Added section on the syntax of the config file, with an informal grammar.

22 years agoFix $DESTDIR support
Alasdair Kergon [Wed, 2 Jan 2002 14:23:10 +0000 (14:23 +0000)]
Fix $DESTDIR support

22 years agoTidy makefiles - $DESTDIR & shared library version (like LVM1)
Alasdair Kergon [Wed, 2 Jan 2002 13:40:49 +0000 (13:40 +0000)]
Tidy makefiles - $DESTDIR & shared library version (like LVM1)

22 years agoAdd test mode parm.
Alasdair Kergon [Mon, 31 Dec 2001 22:12:03 +0000 (22:12 +0000)]
Add test mode parm.

22 years agoo Add autobackup support to tools (follows most vg_write calls).
Alasdair Kergon [Mon, 31 Dec 2001 21:27:39 +0000 (21:27 +0000)]
o Add autobackup support to tools (follows most vg_write calls).
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 "").

22 years agovgcache.h inclusion (avoid compiler warning)
Alasdair Kergon [Mon, 31 Dec 2001 19:18:44 +0000 (19:18 +0000)]
vgcache.h inclusion (avoid compiler warning)

22 years agoo Use lvm_snprintf wherever return value is used
Alasdair Kergon [Mon, 31 Dec 2001 19:09:51 +0000 (19:09 +0000)]
o Use lvm_snprintf wherever return value is used
o Add parameters to set retention limits for backups

22 years agoRemove some old files.
Alasdair Kergon [Mon, 31 Dec 2001 17:34:51 +0000 (17:34 +0000)]
Remove some old files.

22 years agoRedundant.
Alasdair Kergon [Mon, 31 Dec 2001 17:26:42 +0000 (17:26 +0000)]
Redundant.

22 years agoDocument lvm.conf fields
Alasdair Kergon [Mon, 31 Dec 2001 17:20:22 +0000 (17:20 +0000)]
Document lvm.conf fields

22 years agoOutline docs
Alasdair Kergon [Mon, 31 Dec 2001 16:12:40 +0000 (16:12 +0000)]
Outline docs

22 years agoo Allow more default values to be overridden from config file.
Alasdair Kergon [Mon, 31 Dec 2001 15:20:18 +0000 (15:20 +0000)]
o Allow more default values to be overridden from config file.
o Cope with both the readline versions used around here.

22 years agoFix C99 error case handling (snprintf ret value >= buffer size).
Alasdair Kergon [Mon, 31 Dec 2001 15:17:34 +0000 (15:17 +0000)]
Fix C99 error case handling (snprintf ret value >= buffer size).

22 years agoFixes for compilation.
Alasdair Kergon [Mon, 31 Dec 2001 15:14:44 +0000 (15:14 +0000)]
Fixes for compilation.

22 years agoRemove unused --with_kernel_dir
Alasdair Kergon [Mon, 31 Dec 2001 15:13:42 +0000 (15:13 +0000)]
Remove unused --with_kernel_dir
Current version of LVM2 instead relies on /usr/include/libdevmapper.h
which gets installed by the device mapper package.
(Should this location now be configurable?)

22 years agoRevised ioctl/dmfs merge with fixes for bugs found in tests.
Alasdair Kergon [Thu, 20 Dec 2001 20:32:14 +0000 (20:32 +0000)]
Revised ioctl/dmfs merge with fixes for bugs found in tests.

22 years agoo Added a quick vgcfgbackup, needs parameters as yet.
Joe Thornber [Thu, 20 Dec 2001 16:05:14 +0000 (16:05 +0000)]
o  Added a quick vgcfgbackup, needs parameters as yet.

22 years agoo Debug version of the pool_grow stuff.
Joe Thornber [Thu, 20 Dec 2001 12:27:41 +0000 (12:27 +0000)]
o  Debug version of the pool_grow stuff.

22 years agoo sync backup changes
Joe Thornber [Thu, 20 Dec 2001 11:52:54 +0000 (11:52 +0000)]
o  sync backup changes

22 years agoWipe the first label if writing the second one failed.
Patrick Caulfield [Tue, 18 Dec 2001 14:39:32 +0000 (14:39 +0000)]
Wipe the first label if writing the second one failed.

22 years agoo sync the backup stuff
Joe Thornber [Mon, 17 Dec 2001 19:46:10 +0000 (19:46 +0000)]
o sync the backup stuff

22 years agoo history is now saved in ~/.lvm_history
Joe Thornber [Mon, 17 Dec 2001 17:59:58 +0000 (17:59 +0000)]
o  history is now saved in ~/.lvm_history

22 years agoo Shuffled completion functions around so we dont have to declare them
Joe Thornber [Mon, 17 Dec 2001 17:18:47 +0000 (17:18 +0000)]
o Shuffled completion functions around so we dont have to declare them
  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.

22 years agoo Changed the macro name in args.h from 'xx' to 'arg'
Joe Thornber [Mon, 17 Dec 2001 16:58:17 +0000 (16:58 +0000)]
o  Changed the macro name in args.h from 'xx' to 'arg'

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.

22 years agoo Use lvm_snprintf
Joe Thornber [Mon, 17 Dec 2001 14:05:43 +0000 (14:05 +0000)]
o Use lvm_snprintf

22 years agoo Add symlink for lvm-string.h
Joe Thornber [Mon, 17 Dec 2001 14:04:33 +0000 (14:04 +0000)]
o  Add symlink for lvm-string.h

22 years agoo lvm_snprintf
Joe Thornber [Mon, 17 Dec 2001 14:04:10 +0000 (14:04 +0000)]
o  lvm_snprintf

Could everyone please use this from now on.

22 years agoo Remove LVM_CONFIG_FILE environment variable.
Joe Thornber [Mon, 17 Dec 2001 12:01:09 +0000 (12:01 +0000)]
o  Remove LVM_CONFIG_FILE environment variable.

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.

22 years agoTypos in error messages
Heinz Mauelshagen [Mon, 17 Dec 2001 11:07:33 +0000 (11:07 +0000)]
Typos in error messages

22 years agoI had another look at the argument processing code:
Joe Thornber [Mon, 17 Dec 2001 10:08:27 +0000 (10:08 +0000)]
I had another look at the argument processing code:

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.

22 years agoo Include dmsetup man page in build
Alasdair Kergon [Fri, 14 Dec 2001 13:30:04 +0000 (13:30 +0000)]
o Include dmsetup man page in build
o Allow pathname in dmsetup device arg
o Generated patches for 0.90.02

22 years agoWrite the location of both labels in the labels so we can check them. I don't do
Patrick Caulfield [Fri, 14 Dec 2001 13:15:15 +0000 (13:15 +0000)]
Write the location of both labels in the labels so we can check them. I don't do
much with this ATM (apart from check that they all match up).
Use a different CRC routine.

22 years agoo I figure if I can't remember how to use my code, then I should add
Joe Thornber [Thu, 13 Dec 2001 16:09:06 +0000 (16:09 +0000)]
o  I figure if I can't remember how to use my code, then I should add
   a comment.  It's quite cool, wish I remember writing it.

22 years agoHandle orphan PVs too, so hints remain valid after vgreduce.
Alasdair Kergon [Thu, 13 Dec 2001 15:08:58 +0000 (15:08 +0000)]
Handle orphan PVs too, so hints remain valid after vgreduce.

22 years agoo Man page for dmsetup
Joe Thornber [Thu, 13 Dec 2001 13:46:21 +0000 (13:46 +0000)]
o Man page for dmsetup

22 years agomade the hard-coded 512 into BLOCK_SIZE just for neatness sake.
Patrick Caulfield [Thu, 13 Dec 2001 08:40:47 +0000 (08:40 +0000)]
made the hard-coded 512 into BLOCK_SIZE just for neatness sake.
log_error() if writing the label fails so someone knows which was in error.

22 years agoAdd internal cache holding a 'hint' list of the PVs belonging to each VG.
Alasdair Kergon [Thu, 13 Dec 2001 00:07:29 +0000 (00:07 +0000)]
Add internal cache holding a 'hint' list of the PVs belonging to each VG.
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.

22 years agofix for clean compilation
Alasdair Kergon [Wed, 12 Dec 2001 16:25:53 +0000 (16:25 +0000)]
fix for clean compilation

22 years agoo silly bugs
Joe Thornber [Wed, 12 Dec 2001 16:22:38 +0000 (16:22 +0000)]
o silly bugs

22 years agoo pool-debug version of end_object wasn't returning the object.
Joe Thornber [Wed, 12 Dec 2001 16:05:52 +0000 (16:05 +0000)]
o  pool-debug version of end_object wasn't returning the object.

22 years agoo Add error checking in _new_chunk
Joe Thornber [Wed, 12 Dec 2001 14:54:24 +0000 (14:54 +0000)]
o  Add error checking in _new_chunk

22 years agoo pool-debug versions of begin_object, grow_object etc.
Joe Thornber [Wed, 12 Dec 2001 14:25:20 +0000 (14:25 +0000)]
o  pool-debug versions of begin_object, grow_object etc.

22 years agoBuild label code into the library
Patrick Caulfield [Wed, 12 Dec 2001 09:09:04 +0000 (09:09 +0000)]
Build label code into the library

22 years agoUse a proper CRC calculation.
Patrick Caulfield [Wed, 12 Dec 2001 09:05:44 +0000 (09:05 +0000)]
Use a proper CRC calculation.

22 years ago- Change label format to include a string disk_type and a version number.
Patrick Caulfield [Tue, 11 Dec 2001 16:49:40 +0000 (16:49 +0000)]
- Change label format to include a string disk_type and a version number.
- The iterator can find labels by string and also appropriate version number (==,
  <= or any) if you want.
- Add labels_match() call that compares the two labels and returns an error if
  they do not match.
- Write labels in sector 1 & last rather than 2 & last as per Joe.

22 years agoApply make distclean to test subdirs too.
Alasdair Kergon [Tue, 11 Dec 2001 16:26:34 +0000 (16:26 +0000)]
Apply make distclean to test subdirs too.

22 years agoFix label filter.
Patrick Caulfield [Tue, 11 Dec 2001 14:17:10 +0000 (14:17 +0000)]
Fix label filter.

22 years agoo Add output_date
Joe Thornber [Tue, 11 Dec 2001 12:29:25 +0000 (12:29 +0000)]
o  Add output_date

22 years agoo flags.c reads and writes a status bitset
Joe Thornber [Tue, 11 Dec 2001 12:18:56 +0000 (12:18 +0000)]
o  flags.c reads and writes a status bitset

22 years agoo Split import-export.c into two files.
Joe Thornber [Tue, 11 Dec 2001 12:16:58 +0000 (12:16 +0000)]
o  Split import-export.c into two files.

22 years agoo Update sample to a format that supports multiple vg's per file.
Joe Thornber [Tue, 11 Dec 2001 12:15:08 +0000 (12:15 +0000)]
o  Update sample to a format that supports multiple vg's per file.

22 years agoLabel reading/writing code.
Patrick Caulfield [Tue, 11 Dec 2001 11:42:30 +0000 (11:42 +0000)]
Label reading/writing code.
Not tested the filter yet.

22 years agoo Pretty print and read for uuid's
Joe Thornber [Tue, 11 Dec 2001 11:40:34 +0000 (11:40 +0000)]
o  Pretty print and read for uuid's

22 years agoAdd a dev_get_sectsize call.
Patrick Caulfield [Tue, 11 Dec 2001 10:18:49 +0000 (10:18 +0000)]
Add a dev_get_sectsize call.

22 years agoFixes for allocation of striped volumes.
Alasdair Kergon [Fri, 7 Dec 2001 21:17:12 +0000 (21:17 +0000)]
Fixes for allocation of striped volumes.

22 years agoFixes for library compilation.
Alasdair Kergon [Fri, 7 Dec 2001 21:15:33 +0000 (21:15 +0000)]
Fixes for library compilation.

22 years agoMoved across to device-mapper repository.
Alasdair Kergon [Thu, 6 Dec 2001 14:20:38 +0000 (14:20 +0000)]
Moved across to device-mapper repository.

22 years ago o Updated projects.txt to remove the earlier error which turned out to be
Steven Whitehouse [Wed, 5 Dec 2001 18:04:55 +0000 (18:04 +0000)]
 o Updated projects.txt to remove the earlier error which turned out to be
   a build error.

22 years agoVarious fixes & restructure to extract common code.
Alasdair Kergon [Wed, 5 Dec 2001 16:41:52 +0000 (16:41 +0000)]
Various fixes & restructure to extract common code.

22 years ago o Removed unused MOD_INC/DEC_USE_COUNT
Steven Whitehouse [Wed, 5 Dec 2001 12:00:01 +0000 (12:00 +0000)]
 o Removed unused MOD_INC/DEC_USE_COUNT

22 years ago o Added a few more projects
Steven Whitehouse [Wed, 5 Dec 2001 11:58:43 +0000 (11:58 +0000)]
 o Added a few more projects

22 years ago o Initial merge attempt
Steven Whitehouse [Wed, 5 Dec 2001 11:28:41 +0000 (11:28 +0000)]
 o Initial merge attempt

There are still a few odd things going on, so more debugging remains to be
done.

This page took 0.067985 seconds and 5 git commands to generate.