]> sourceware.org Git - lvm2.git/log
lvm2.git
22 years agoo move the path building functions to lib/activate/names.c
Joe Thornber [Mon, 21 Jan 2002 11:06:32 +0000 (11:06 +0000)]
o  move the path building functions to lib/activate/names.c

o  Update activate.c and fs.c to use them

o  device names are now of the form <vg>:<lv>

22 years agoAllow syslog facility to be set, or turned off, from the config file.
Alasdair Kergon [Fri, 18 Jan 2002 21:26:37 +0000 (21:26 +0000)]
Allow syslog facility to be set, or turned off, from the config file.

22 years agoDisplay something in the "hypothetical" unknown log level case.
Alasdair Kergon [Fri, 18 Jan 2002 19:38:19 +0000 (19:38 +0000)]
Display something in the "hypothetical" unknown log level case.

22 years agoUse same log levels as LVM2.
Alasdair Kergon [Fri, 18 Jan 2002 19:37:26 +0000 (19:37 +0000)]
Use same log levels as LVM2.

22 years agoAllow compilation against a device-mapper that was installed into $DESTDIR
Alasdair Kergon [Fri, 18 Jan 2002 16:43:19 +0000 (16:43 +0000)]
Allow compilation against a device-mapper that was installed into $DESTDIR
Always check for negative (error) return code from lv_active()

22 years agoMore updates.
Alasdair Kergon [Fri, 18 Jan 2002 13:45:12 +0000 (13:45 +0000)]
More updates.

22 years agoadded before 2.1 item
Heinz Mauelshagen [Fri, 18 Jan 2002 11:07:26 +0000 (11:07 +0000)]
added before 2.1 item

22 years agobeta1-pre1 tagged, but there's still some documentation to update/write.
Alasdair Kergon [Thu, 17 Jan 2002 18:48:08 +0000 (18:48 +0000)]
beta1-pre1 tagged, but there's still some documentation to update/write.

22 years agoSupport --version argument and 'version' shell command.
Alasdair Kergon [Thu, 17 Jan 2002 16:39:24 +0000 (16:39 +0000)]
Support --version argument and 'version' shell command.

22 years agoAdd function that returns the library version.
Alasdair Kergon [Thu, 17 Jan 2002 14:13:25 +0000 (14:13 +0000)]
Add function that returns the library version.

22 years agoAdd another level of symlink to library name (like LVM1) so people who find
Alasdair Kergon [Thu, 17 Jan 2002 13:37:09 +0000 (13:37 +0000)]
Add another level of symlink to library name (like LVM1) so people who find
themselves running multiple incompatible kernel versions will just need
to swap symlinks at boot.

22 years agoUse additional version numbers.
Alasdair Kergon [Thu, 17 Jan 2002 13:19:55 +0000 (13:19 +0000)]
Use additional version numbers.
  Kernel driver has a version number (stored in kernel/VERSION).
  The first two components of this (0.94) give the version number of the
  ioctl interface.  This number must be changed whenever a change is
  made to the ioctl interface that breaks backwards compatibility.

  The library has a version number (stored in VERSION) which is
  used for linking.
  The first and/or second component of this must be changed whenever
  a change is made to the library API that breaks backwards
  compatibility.

22 years agoo pvcreate --uuid to specify the uuid (required before using vgcfgrestore
Alasdair Kergon [Wed, 16 Jan 2002 18:10:08 +0000 (18:10 +0000)]
o pvcreate --uuid to specify the uuid (required before using vgcfgrestore
  onto a new device).  uuid specified must not already exist on the system.
o More message tidying.
o When checking for label, only read PV metadata.
o Add ataraid.  [Needs moving into config/defaults files.]

22 years agoo save before committing
Joe Thornber [Wed, 16 Jan 2002 15:53:42 +0000 (15:53 +0000)]
o save before committing

22 years agoo lvm.conf file that contains the same settings that would be assumed if it
Joe Thornber [Wed, 16 Jan 2002 15:52:53 +0000 (15:52 +0000)]
o  lvm.conf file that contains the same settings that would be assumed if it
   wasn't there.  A good starting point for tweaking.

22 years agoMove test flag from log to global section of config file.
Alasdair Kergon [Wed, 16 Jan 2002 15:20:51 +0000 (15:20 +0000)]
Move test flag from log to global section of config file.

22 years agoo Don't update vgcache when (not really) writing in test mode.
Alasdair Kergon [Wed, 16 Jan 2002 14:43:27 +0000 (14:43 +0000)]
o Don't update vgcache when (not really) writing in test mode.
o Don't continue iterating through a possibly-deleted list.

22 years agoRemove a duplicate disk read (can_handle).
Alasdair Kergon [Wed, 16 Jan 2002 13:09:26 +0000 (13:09 +0000)]
Remove a duplicate disk read (can_handle).

22 years ago#include <string.h>
Patrick Caulfield [Wed, 16 Jan 2002 12:02:06 +0000 (12:02 +0000)]
#include <string.h>

22 years agoo Set the segment counter back to 1, for a new LV.
Joe Thornber [Wed, 16 Jan 2002 11:34:29 +0000 (11:34 +0000)]
o  Set the segment counter back to 1, for a new LV.

22 years agoo Add pvmove to the stub file.
Joe Thornber [Wed, 16 Jan 2002 11:27:19 +0000 (11:27 +0000)]
o  Add pvmove to the stub file.

22 years agoo Knock out the "'%s' is not a block device" debug message.
Joe Thornber [Wed, 16 Jan 2002 09:23:28 +0000 (09:23 +0000)]
o  Knock out the "'%s' is not a block device" debug message.

22 years agoReduce 'no label found' message severity to debug level.
Alasdair Kergon [Wed, 16 Jan 2002 00:01:36 +0000 (00:01 +0000)]
Reduce 'no label found' message severity to debug level.

22 years agoFix function typecasts.
Alasdair Kergon [Tue, 15 Jan 2002 23:47:56 +0000 (23:47 +0000)]
Fix function typecasts.

22 years ago o More comprehensive config parameter debugging messages.
Alasdair Kergon [Tue, 15 Jan 2002 23:34:13 +0000 (23:34 +0000)]
 o More comprehensive config parameter debugging messages.
 o Make /proc configurable.
 o Review hard-coded "/dev"s - made 2 more of them configurable.

22 years agoo missing labeller free
Alasdair Kergon [Tue, 15 Jan 2002 21:28:04 +0000 (21:28 +0000)]
o missing labeller free
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

22 years agoo Actually check in vgcfgrestore.
Joe Thornber [Tue, 15 Jan 2002 18:17:57 +0000 (18:17 +0000)]
o  Actually check in vgcfgrestore.

22 years agoo vgcfgrestore works ! (with the couple of examples I tried).
Joe Thornber [Tue, 15 Jan 2002 17:37:23 +0000 (17:37 +0000)]
o  vgcfgrestore works ! (with the couple of examples I tried).

22 years agoAnother ioctl interface update:
Alasdair Kergon [Tue, 15 Jan 2002 15:21:57 +0000 (15:21 +0000)]
Another ioctl interface update:
  Supply offset to start of variable data area (so struct size can change
without breaking backward compatibility)
  Add command that just returns the driver version

22 years agoo split the uuid -> device map out from vgcache
Joe Thornber [Tue, 15 Jan 2002 10:24:48 +0000 (10:24 +0000)]
o  split the uuid -> device map out from vgcache

o  roll vgcache back to agk's implementation, we'll revisit this as part
   of the cluster integration.

o  change the extra_info field in a label to be a void *

22 years agoSome ioctl interface changes. (Do we want these?)
Alasdair Kergon [Mon, 14 Jan 2002 23:07:32 +0000 (23:07 +0000)]
Some ioctl interface changes. (Do we want these?)
  - use status bits (so we can add flags without changing the struct size)
  - use dev_t

22 years agoo Non-caching implementation of new vgcache interface.
Joe Thornber [Mon, 14 Jan 2002 11:43:52 +0000 (11:43 +0000)]
o  Non-caching implementation of new vgcache interface.

22 years agoo LVM1 labeller.
Joe Thornber [Mon, 14 Jan 2002 10:00:56 +0000 (10:00 +0000)]
o  LVM1 labeller.

22 years agoo Reformat comment and correct typo.
Joe Thornber [Mon, 14 Jan 2002 09:59:12 +0000 (09:59 +0000)]
o  Reformat comment and correct typo.

22 years agoo Add rename support to dmsetup.
Alasdair Kergon [Fri, 11 Jan 2002 12:12:46 +0000 (12:12 +0000)]
o Add rename support to dmsetup.
o Add support to use specified minor number to library and dmsetup.

22 years agoCouple of typos fixed.
Patrick Caulfield [Fri, 11 Jan 2002 11:34:53 +0000 (11:34 +0000)]
Couple of typos fixed.

22 years agoo Put in the pv_hash which stores the pv section name -> pv struct mapping.
Joe Thornber [Fri, 11 Jan 2002 11:09:12 +0000 (11:09 +0000)]
o  Put in the pv_hash which stores the pv section name -> pv struct mapping.

22 years agoo label.c now compiles.
Joe Thornber [Fri, 11 Jan 2002 10:43:32 +0000 (10:43 +0000)]
o  label.c now compiles.

22 years agoChange lvm2_label to use Joe's new label switch system.
Patrick Caulfield [Fri, 11 Jan 2002 10:39:56 +0000 (10:39 +0000)]
Change lvm2_label to use Joe's new label switch system.

22 years agoSupport the renaming of active mapped devices (ioctl interface only).
Alasdair Kergon [Thu, 10 Jan 2002 23:29:16 +0000 (23:29 +0000)]
Support the renaming of active mapped devices (ioctl interface only).

22 years agoo ACTIVE is no longer a status flag - lv_active() used to check if an LV
Alasdair Kergon [Thu, 10 Jan 2002 23:21:07 +0000 (23:21 +0000)]
o ACTIVE is no longer a status flag - lv_active() used to check if an LV
  is active in the device-mapper.
o Many operations can be carried out regardless of whether the VG is
  active or not.
o vgscan does not activate anything - use vgchange.
o Change lvrename to support renaming of active LVs.
o Remove '//' appearing in some pathnames.
o Dummy lv_check_segments() for compilation.

22 years agoo _read_id function for import.c
Joe Thornber [Thu, 10 Jan 2002 18:12:26 +0000 (18:12 +0000)]
o  _read_id function for import.c

22 years agoMore steps towards successful compilation.
Alasdair Kergon [Thu, 10 Jan 2002 16:48:28 +0000 (16:48 +0000)]
More steps towards successful compilation.

22 years agoAdd 'get' functions.
Alasdair Kergon [Thu, 10 Jan 2002 16:47:58 +0000 (16:47 +0000)]
Add 'get' functions.

22 years agoMore detail in error msgs.
Alasdair Kergon [Thu, 10 Jan 2002 16:47:25 +0000 (16:47 +0000)]
More detail in error msgs.

22 years agoSeparate constant fields from variable ones.
Alasdair Kergon [Thu, 10 Jan 2002 16:47:04 +0000 (16:47 +0000)]
Separate constant fields from variable ones.

22 years agoClarify terminology:
Alasdair Kergon [Thu, 10 Jan 2002 15:09:51 +0000 (15:09 +0000)]
Clarify terminology:
  VG is resizeable  - PVs can be added or removed
  PV is allocatable - free extents on it may be allocated to LVs

22 years agoo Moved the current label.[hc] sideways to lvm2_label.[hc]
Joe Thornber [Thu, 10 Jan 2002 15:01:58 +0000 (15:01 +0000)]
o  Moved the current label.[hc] sideways to lvm2_label.[hc]

o  First pass at low level labelling switch.  This allows us to
   register different label types (eg, lvm1, lvm2).

22 years agoAllow for multiple spellings / backwards compatibility of renamed
Alasdair Kergon [Thu, 10 Jan 2002 14:46:50 +0000 (14:46 +0000)]
Allow for multiple spellings / backwards compatibility of renamed
command line options.
      vgchange --resizeable y
      pvchange --allocatable y
But --allocation is still allowed for both (as LVM1) and --resizable is OK.

22 years agoo vgcfgrestore.
Joe Thornber [Thu, 10 Jan 2002 14:27:47 +0000 (14:27 +0000)]
o  vgcfgrestore.

22 years agoTemporary file creation & renaming.
Alasdair Kergon [Thu, 10 Jan 2002 12:22:17 +0000 (12:22 +0000)]
Temporary file creation & renaming.

22 years agoo First pass at import.c. Still waiting for label code for the uuid->pv
Joe Thornber [Thu, 10 Jan 2002 11:18:08 +0000 (11:18 +0000)]
o  First pass at import.c.  Still waiting for label code for the uuid->pv
   mapping.

22 years agoo Put in the 'out of memory' log_err for pool.
Joe Thornber [Thu, 10 Jan 2002 09:35:55 +0000 (09:35 +0000)]
o  Put in the 'out of memory' log_err for pool.

22 years agoRenamed to archive.c
Alasdair Kergon [Wed, 9 Jan 2002 19:17:11 +0000 (19:17 +0000)]
Renamed to archive.c

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.

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