]> sourceware.org Git - lvm2.git/log
lvm2.git
22 years agoNew function to enable suppression of messages to stdout/stderr.
Alasdair Kergon [Fri, 15 Mar 2002 22:54:04 +0000 (22:54 +0000)]
New function to enable suppression of messages to stdout/stderr.

22 years agoReview locking: block signals instead of ignoring them and restore state
Alasdair Kergon [Fri, 15 Mar 2002 16:07:38 +0000 (16:07 +0000)]
Review locking: block signals instead of ignoring them and restore state
afterwards; avoid race condition with unlink; add LCK_HOLD to process_each_vg.

22 years agoReduce the number of dm info calls.
Alasdair Kergon [Thu, 14 Mar 2002 21:17:30 +0000 (21:17 +0000)]
Reduce the number of dm info calls.

22 years agodistclean also to remove libdm-common.h
Alasdair Kergon [Thu, 14 Mar 2002 16:56:02 +0000 (16:56 +0000)]
distclean also to remove libdm-common.h

22 years agoIntegrate suspend.
Alasdair Kergon [Thu, 14 Mar 2002 15:36:07 +0000 (15:36 +0000)]
Integrate suspend.

22 years agoSuppress verbose/debug messages from libdevmapper.
Alasdair Kergon [Thu, 14 Mar 2002 13:39:33 +0000 (13:39 +0000)]
Suppress verbose/debug messages from libdevmapper.

22 years agoo dev_manager_suspend, untested.
Joe Thornber [Thu, 14 Mar 2002 10:56:09 +0000 (10:56 +0000)]
o dev_manager_suspend, untested.

22 years agoA missing free() found by Valgrind. ( http://developer.kde.org/~sewardj/ )
Alasdair Kergon [Wed, 13 Mar 2002 23:19:20 +0000 (23:19 +0000)]
A missing free() found by Valgrind. ( http://developer.kde.org/~sewardj/ )

22 years agodmsetup display uuid
Alasdair Kergon [Wed, 13 Mar 2002 16:19:17 +0000 (16:19 +0000)]
dmsetup display uuid

22 years agoSet LV uuid.
Alasdair Kergon [Wed, 13 Mar 2002 15:11:29 +0000 (15:11 +0000)]
Set LV uuid.

22 years agoo Mention that vgscan needs to be run after changing the filter var.
Joe Thornber [Wed, 13 Mar 2002 14:25:53 +0000 (14:25 +0000)]
o  Mention that vgscan needs to be run after changing the filter var.

22 years agoFix _align so it works on 64-bit machines.
Patrick Caulfield [Tue, 12 Mar 2002 15:27:51 +0000 (15:27 +0000)]
Fix _align so it works on 64-bit machines.

22 years agoLet dmsetup store the uuid on device creation.
Alasdair Kergon [Mon, 11 Mar 2002 22:44:36 +0000 (22:44 +0000)]
Let dmsetup store the uuid on device creation.

22 years agoMove is_empty_dir to lvm-file
Alasdair Kergon [Mon, 11 Mar 2002 22:23:24 +0000 (22:23 +0000)]
Move is_empty_dir to lvm-file

22 years agoo Actually check that the vg directory is empty rather than speculatively
Joe Thornber [Mon, 11 Mar 2002 20:43:58 +0000 (20:43 +0000)]
o  Actually check that the vg directory is empty rather than speculatively
   rmdiring it.  Work around for devfs bug.

22 years agoo This should complete the dev_manager alg. Please could people now
Joe Thornber [Mon, 11 Mar 2002 20:36:04 +0000 (20:36 +0000)]
o This should complete the dev_manager alg.  Please could people now
  report any activation oddities they see.

22 years agolv_info replaces lv_active etc.
Alasdair Kergon [Mon, 11 Mar 2002 19:02:28 +0000 (19:02 +0000)]
lv_info replaces lv_active etc.

22 years agoo activate/reactivate merge
Alasdair Kergon [Mon, 11 Mar 2002 15:08:39 +0000 (15:08 +0000)]
o activate/reactivate merge
o unlocking macro

22 years agoo dm->active_list now filled in, ATM this is based on the layer name rather
Joe Thornber [Mon, 11 Mar 2002 11:27:48 +0000 (11:27 +0000)]
o  dm->active_list now filled in, ATM this is based on the layer name rather
   than the uuid.

22 years agoo Comment out some new code that was preventing pjc activating
Joe Thornber [Mon, 11 Mar 2002 10:38:16 +0000 (10:38 +0000)]
o Comment out some new code that was preventing pjc activating
  snapshots.  This will go back in when the active_list is working.

22 years agoo knock out the offset for origin targets.
Joe Thornber [Fri, 8 Mar 2002 10:45:01 +0000 (10:45 +0000)]
o  knock out the offset for origin targets.

22 years agoo Add active_list to dev_manager
Joe Thornber [Fri, 8 Mar 2002 10:41:48 +0000 (10:41 +0000)]
o  Add active_list to dev_manager

o  Origin layer is only added to snapshots if a snapshot is in the
   active_list.

22 years agoheh, whoops. s/device-mapper/LVM2/g.
Andres Salomon [Fri, 8 Mar 2002 02:39:08 +0000 (02:39 +0000)]
heh, whoops.  s/device-mapper/LVM2/g.

22 years agoo dm_destroy_all() called on exit - but doesn't touch suspended devices yet.
Alasdair Kergon [Thu, 7 Mar 2002 20:56:10 +0000 (20:56 +0000)]
o dm_destroy_all() called on exit - but doesn't touch suspended devices yet.
o 'dmsetup remove_all' calls dm_destroy_all() to provide a quick way to
  prepare for unloading the module
o Ran through indent again.

22 years agoo First cut at dev scanning.
Joe Thornber [Thu, 7 Mar 2002 17:37:38 +0000 (17:37 +0000)]
o  First cut at dev scanning.

o  Split up _expand_lv

22 years agoo Add comment describing what we're aiming for with dev_manager.
Joe Thornber [Thu, 7 Mar 2002 16:48:46 +0000 (16:48 +0000)]
o  Add comment describing what we're aiming for with dev_manager.

o  Remove dev_manager_reactivate, since it'll be the same as activate.

o  Merge the mark, visible and dirty fields into the same flags field.

22 years agoo Top level device is now just called <vg>-<lv> (there's no 'top'
Joe Thornber [Thu, 7 Mar 2002 15:29:31 +0000 (15:29 +0000)]
o Top level device is now just called <vg>-<lv> (there's no 'top'
  layer appended).

o  Got rid of the unused layer->type field and enum.

22 years agoKernel functionality that returns device dependencies (ejt).
Alasdair Kergon [Wed, 6 Mar 2002 19:42:23 +0000 (19:42 +0000)]
Kernel functionality that returns device dependencies (ejt).

22 years agoo Rename dmsetup dependencies -> dmsetup deps
Joe Thornber [Wed, 6 Mar 2002 14:47:13 +0000 (14:47 +0000)]
o  Rename dmsetup dependencies -> dmsetup deps

22 years agoo Add support for getting dependencies for a device.
Joe Thornber [Wed, 6 Mar 2002 14:38:25 +0000 (14:38 +0000)]
o  Add support for getting dependencies for a device.

o  dmsetup dependencies <dev>

22 years agoconvert from debian native package
Andres Salomon [Wed, 6 Mar 2002 05:43:54 +0000 (05:43 +0000)]
convert from debian native package

22 years agoo Use new LCK_HOLD flag to indicate whether lock should be held on return
Alasdair Kergon [Tue, 5 Mar 2002 20:03:09 +0000 (20:03 +0000)]
o Use new LCK_HOLD flag to indicate whether lock should be held on return
  from lock_vol() - otherwise it now attempts to acquire the lock and then
  immediately releases it.
o Extend the id field in struct logical_volume to hold VG uuid + LV uuid
  for format1. This unique lvid can be used directly when calling lock_vol().
o Add the VG uuid to vgcache to make VG uuid lookups possible.  (Another
  step towards using them instead of VG names internally.)

22 years agoFix activation for VG with more than one LV.
Alasdair Kergon [Mon, 4 Mar 2002 18:50:34 +0000 (18:50 +0000)]
Fix activation for VG with more than one LV.

22 years agosnapshot/zero logic
Alasdair Kergon [Mon, 4 Mar 2002 15:25:52 +0000 (15:25 +0000)]
snapshot/zero logic

22 years agoo Add a line to lvdisplay to say if the volume is a snapshot.
Joe Thornber [Mon, 4 Mar 2002 15:12:30 +0000 (15:12 +0000)]
o  Add a line to lvdisplay to say if the volume is a snapshot.

22 years agoo Bad dependency, meant the origin was always getting activated.
Joe Thornber [Mon, 4 Mar 2002 15:10:30 +0000 (15:10 +0000)]
o  Bad dependency, meant the origin was always getting activated.

22 years agoRemove unused fns.
Alasdair Kergon [Mon, 4 Mar 2002 14:27:25 +0000 (14:27 +0000)]
Remove unused fns.

22 years agoo I was tearing down device bottom-up instead of top down. Which
Joe Thornber [Mon, 4 Mar 2002 14:26:43 +0000 (14:26 +0000)]
o  I was tearing down device bottom-up instead of top down.  Which
   is why lvremove of snapshots wasn't working.

22 years agoo Break creating a snapshot down into:
Joe Thornber [Mon, 4 Mar 2002 13:46:37 +0000 (13:46 +0000)]
o  Break creating a snapshot down into:

   i)   create cow
   ii)  activate cow
   iii) zero cow
   iv)  deactivate
   v)   add snapshot info
   vi)  reactivate

22 years agoproper /etc/lvm/lvm.conf now
Andres Salomon [Mon, 4 Mar 2002 11:13:47 +0000 (11:13 +0000)]
proper /etc/lvm/lvm.conf now

22 years agofix various issues
Andres Salomon [Mon, 4 Mar 2002 11:12:57 +0000 (11:12 +0000)]
fix various issues

22 years agoMore use of LV locking.
Alasdair Kergon [Fri, 1 Mar 2002 19:08:11 +0000 (19:08 +0000)]
More use of LV locking.

22 years agoo point snapshots at origin:real rather than origin:top, and *ping*
Joe Thornber [Fri, 1 Mar 2002 09:07:00 +0000 (09:07 +0000)]
o point snapshots at origin:real rather than origin:top, and *ping*
  snapshots work.

22 years agoFix unlock parameter.
Alasdair Kergon [Wed, 27 Feb 2002 14:48:42 +0000 (14:48 +0000)]
Fix unlock parameter.

22 years agoo Lock mechanism for LV activation
Alasdair Kergon [Wed, 27 Feb 2002 12:26:41 +0000 (12:26 +0000)]
o Lock mechanism for LV activation
o #defines for common lock flag combinations
o Try out hyphens instead of colons in device-mapper names - does this
  make messages containing filenames easier to read?

22 years agoRunning out of filehandles? Close /dev/device-mapper/control then.
Alasdair Kergon [Tue, 26 Feb 2002 18:30:02 +0000 (18:30 +0000)]
Running out of filehandles?  Close /dev/device-mapper/control then.

22 years agoo Format1 wasn't recording the snapshot chunk size properly
Joe Thornber [Tue, 26 Feb 2002 16:48:52 +0000 (16:48 +0000)]
o  Format1 wasn't recording the snapshot chunk size properly

o  Activation of snapshots now works - though the resulting device
   doesn't (pjc ?)

o  text format wasn't setting vg->cmd.

22 years agoClearer link pathname display.
Alasdair Kergon [Tue, 26 Feb 2002 16:08:22 +0000 (16:08 +0000)]
Clearer link pathname display.

22 years agoo _build_name was allocating 1 byte too few, which meant the
Joe Thornber [Tue, 26 Feb 2002 14:44:13 +0000 (14:44 +0000)]
o _build_name was allocating 1 byte too few, which meant the
  terminating zero was falling off at some later point.

o Don't try and iterate from a deleted node in _prune_unmarked.

22 years agoo Removed old files
Joe Thornber [Tue, 26 Feb 2002 11:49:17 +0000 (11:49 +0000)]
o  Removed old files

o  rewrote activate.c to use dev-manager, I'm sure these two will merge
   at some point.

o  Rename is broken ATM

o  dev-manager puts the calls through to fs.c for layers that have the
   'visible' flag set.

22 years agoo More dev_manager fns.
Joe Thornber [Mon, 25 Feb 2002 16:53:12 +0000 (16:53 +0000)]
o  More dev_manager fns.

22 years agopvresize command
Heinz Mauelshagen [Mon, 25 Feb 2002 15:32:58 +0000 (15:32 +0000)]
pvresize command

22 years agoo In go the populate functions.
Joe Thornber [Mon, 25 Feb 2002 15:19:53 +0000 (15:19 +0000)]
o  In go the populate functions.

22 years agoo More dev_manager work.
Joe Thornber [Mon, 25 Feb 2002 14:46:57 +0000 (14:46 +0000)]
o  More dev_manager work.

22 years agoBegin conversion so LV id is passed to activation unit instead of
Alasdair Kergon [Mon, 25 Feb 2002 12:56:16 +0000 (12:56 +0000)]
Begin conversion so LV id is passed to activation unit instead of
struct logical_volume.

22 years agoo Sync with cvs, dev_manager still needs to be wired into activate.c
Joe Thornber [Mon, 25 Feb 2002 12:02:33 +0000 (12:02 +0000)]
o  Sync with cvs, dev_manager still needs to be wired into activate.c

22 years agoo Remove the vg argument from find_cow
Joe Thornber [Mon, 25 Feb 2002 11:55:39 +0000 (11:55 +0000)]
o  Remove the vg argument from find_cow

22 years agoo hash_iterate -> hash_iter
Joe Thornber [Mon, 25 Feb 2002 11:54:15 +0000 (11:54 +0000)]
o hash_iterate -> hash_iter

22 years agoo Added a macro called hash_iterate, that is similar to list_iterate
Joe Thornber [Mon, 25 Feb 2002 11:52:58 +0000 (11:52 +0000)]
o Added a macro called hash_iterate, that is similar to list_iterate

o Renamed hash_iterate function, hash_iter.

22 years agoindent
Alasdair Kergon [Sun, 24 Feb 2002 22:31:55 +0000 (22:31 +0000)]
indent

22 years agolvmdiskscan
Heinz Mauelshagen [Fri, 22 Feb 2002 13:17:46 +0000 (13:17 +0000)]
lvmdiskscan

22 years agoFill in format_text functions.
Patrick Caulfield [Fri, 22 Feb 2002 11:44:56 +0000 (11:44 +0000)]
Fill in format_text functions.

Sort of seems to work.

22 years agoo Convert lv->id back to lv_number when writing back to disk
Alasdair Kergon [Thu, 21 Feb 2002 19:04:37 +0000 (19:04 +0000)]
o Convert lv->id back to lv_number when writing back to disk
o Use first unused lv_number when creating new LV
o Use lv_number for refs to snapshots
o Update persistent minor logic after the lvcreate restructure
o Reset all parameters before use in lvcreate.

22 years agoAvoid ambigous volume_group argument in vg_add_snapshot()
Heinz Mauelshagen [Thu, 21 Feb 2002 18:31:48 +0000 (18:31 +0000)]
Avoid ambigous volume_group argument in vg_add_snapshot()

22 years agoGenerate LV uuid from lv_number when reading in LVs.
Alasdair Kergon [Thu, 21 Feb 2002 15:26:44 +0000 (15:26 +0000)]
Generate LV uuid from lv_number when reading in LVs.

22 years agoRemoved wrong 'lv->vg' argument from lv_is_cow() call. Is used in lv_is_cow internally.
Heinz Mauelshagen [Thu, 21 Feb 2002 14:00:45 +0000 (14:00 +0000)]
Removed wrong 'lv->vg' argument from lv_is_cow() call. Is used in lv_is_cow internally.

22 years agoo typo
Joe Thornber [Thu, 21 Feb 2002 10:17:01 +0000 (10:17 +0000)]
o  typo

22 years agoo add find_cow function.
Joe Thornber [Thu, 21 Feb 2002 10:16:33 +0000 (10:16 +0000)]
o  add find_cow function.

22 years agoo misc little fixes.
Joe Thornber [Thu, 21 Feb 2002 10:15:54 +0000 (10:15 +0000)]
o  misc little fixes.

22 years agoah, it was that "set -e" that was the culprit..
Andres Salomon [Thu, 21 Feb 2002 08:52:36 +0000 (08:52 +0000)]
ah, it was that "set -e" that was the culprit..

22 years agostop init script from returning w/ non-zero if not really an error
Andres Salomon [Thu, 21 Feb 2002 08:30:14 +0000 (08:30 +0000)]
stop init script from returning w/ non-zero if not really an error

22 years agoTry out using LV locking for reactivation.
Alasdair Kergon [Wed, 20 Feb 2002 21:30:27 +0000 (21:30 +0000)]
Try out using LV locking for reactivation.

22 years agoRemove lv_update_write_access: use lv_reactivate directly now instead.
Alasdair Kergon [Wed, 20 Feb 2002 21:28:22 +0000 (21:28 +0000)]
Remove lv_update_write_access: use lv_reactivate directly now instead.

22 years agoSuppress meaningless <backtrace> msg on screen (no prog/line number given)
Alasdair Kergon [Wed, 20 Feb 2002 21:26:40 +0000 (21:26 +0000)]
Suppress meaningless <backtrace> msg on screen (no prog/line number given)

22 years agolvd->lv_access & LV_SNAPSHOT not lvd->lv_status
Alasdair Kergon [Wed, 20 Feb 2002 21:24:45 +0000 (21:24 +0000)]
lvd->lv_access & LV_SNAPSHOT  not  lvd->lv_status

22 years agoRemove VG arg from lv_is_cow() and lv_is_origin() - use lv->vg instead.
Alasdair Kergon [Wed, 20 Feb 2002 19:04:55 +0000 (19:04 +0000)]
Remove VG arg from lv_is_cow() and lv_is_origin() - use lv->vg instead.

22 years agoo Use 'pvcreate --setphysicalvolumesize' with no short form (instead of -s)
Alasdair Kergon [Wed, 20 Feb 2002 18:29:30 +0000 (18:29 +0000)]
o Use 'pvcreate --setphysicalvolumesize' with no short form (instead of -s)
  and add severe warning if it's used to make a device seem bigger than
  it really is.  This is not an option people should be using as it
  breaks metadata integrity.
o Use uint64_t throughout (rather than unsigned long long)
o Convert a few messages that contain pathnames into the more common form:
  pathname: message

22 years agoinitial lvm2 debian packages; still missing some manpages, but otherwise lintian...
Andres Salomon [Wed, 20 Feb 2002 10:28:49 +0000 (10:28 +0000)]
initial lvm2 debian packages; still missing some manpages, but otherwise lintian passes
E: lvm2: binary-without-manpage e2fsadm
E: lvm2: binary-without-manpage lvmdiskscan
E: lvm2: binary-without-manpage lvmsadc
E: lvm2: binary-without-manpage lvmsar
E: lvm2: binary-without-manpage lvresize
E: lvm2: binary-without-manpage pvdata
E: lvm2: binary-without-manpage pvmove
E: lvm2: binary-without-manpage version
E: lvm2: binary-without-manpage vgcfgrestore
E: lvm2: binary-without-manpage vgexport
E: lvm2: binary-without-manpage vgimport
E: lvm2: binary-without-manpage vgmknodes
E: lvm2: binary-without-manpage vgsplit

22 years agoinstall all the manpages (another make-lintian-happy exercise)
Andres Salomon [Wed, 20 Feb 2002 10:22:02 +0000 (10:22 +0000)]
install all the manpages (another make-lintian-happy exercise)

22 years agoo Removed the -z (suspend) option from the tools
Joe Thornber [Mon, 18 Feb 2002 15:52:48 +0000 (15:52 +0000)]
o  Removed the -z (suspend) option from the tools

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.

22 years agoo small bug in the format1 export code for snapshots.
Joe Thornber [Mon, 18 Feb 2002 11:25:43 +0000 (11:25 +0000)]
o  small bug in the format1 export code for snapshots.

o  tidied newlines in the snapshot section of format text.

22 years agoo Add support for the -s and -c flags to lvcreate.
Joe Thornber [Mon, 18 Feb 2002 10:59:51 +0000 (10:59 +0000)]
o  Add support for the -s and -c flags to lvcreate.

22 years agoSecond path on "pvcreate -s"
Heinz Mauelshagen [Fri, 15 Feb 2002 14:33:59 +0000 (14:33 +0000)]
Second path on "pvcreate -s"

22 years agoo split lvcreate into seperate functions for parsing the command line,
Joe Thornber [Fri, 15 Feb 2002 11:53:22 +0000 (11:53 +0000)]
o  split lvcreate into seperate functions for parsing the command line,
   and creating the lv.  A lot of changes in here so be on the lookout
   for bugs.

22 years agoForgot to remove test printf :-)
Heinz Mauelshagen [Fri, 15 Feb 2002 09:37:23 +0000 (09:37 +0000)]
Forgot to remove test printf :-)

22 years agoFirst cut on "pvcreate -s"
Heinz Mauelshagen [Fri, 15 Feb 2002 01:26:16 +0000 (01:26 +0000)]
First cut on "pvcreate -s"

22 years agoo Initialise the snapshot list properly in vgcreate.
Joe Thornber [Thu, 14 Feb 2002 15:06:24 +0000 (15:06 +0000)]
o  Initialise the snapshot list properly in vgcreate.

22 years agoo Define _read_uint32
Joe Thornber [Thu, 14 Feb 2002 14:52:21 +0000 (14:52 +0000)]
o  Define _read_uint32

22 years agotest printf removed
Heinz Mauelshagen [Wed, 13 Feb 2002 21:30:51 +0000 (21:30 +0000)]
test printf removed

22 years agoLV maximum size limit of 2TB ensured in _lv_setup()
Heinz Mauelshagen [Wed, 13 Feb 2002 21:28:56 +0000 (21:28 +0000)]
LV maximum size limit of 2TB ensured in _lv_setup()

22 years agospaces
Heinz Mauelshagen [Wed, 13 Feb 2002 21:28:15 +0000 (21:28 +0000)]
spaces

22 years ago> 2TB numbers in vgdisplay_full
Heinz Mauelshagen [Wed, 13 Feb 2002 20:21:13 +0000 (20:21 +0000)]
> 2TB numbers in vgdisplay_full

22 years agoo snapshot support for the text format.
Joe Thornber [Wed, 13 Feb 2002 13:29:16 +0000 (13:29 +0000)]
o snapshot support for the text format.

The logical_volumes, and snapshots sections of the text format are now
optional.

22 years agoo First pass at format1 snapshot support.
Joe Thornber [Wed, 13 Feb 2002 11:43:29 +0000 (11:43 +0000)]
o  First pass at format1 snapshot support.

22 years agoo First changes to add snapshot support.
Joe Thornber [Tue, 12 Feb 2002 16:31:31 +0000 (16:31 +0000)]
o  First changes to add snapshot support.

I'm taking a different route from LVM1 here in that snapshots are a
seperate entity from the logical volumes, I think of them as an
application of an LV (or two lvs rather).  As such there is a list of
snapshots held against the vg, and there is *not* a SNAPSHOT, or
SHAPSHOT_ORG flag in lv->status.

22 years agouse portable <inttypes.h> macros for printing.
Patrick Caulfield [Tue, 12 Feb 2002 14:12:13 +0000 (14:12 +0000)]
use portable <inttypes.h> macros for printing.

22 years agoo Turn the device_create_* functions into device_populate_*, they only
Joe Thornber [Tue, 12 Feb 2002 11:15:45 +0000 (11:15 +0000)]
o Turn the device_create_* functions into device_populate_*, they only
  fill in an already created dm_task.  This allows common code, such
  as minor number selection, and read_only to be lifted.

22 years agoRun through indent - no (intentional) changes to any code.
Alasdair Kergon [Mon, 11 Feb 2002 21:00:35 +0000 (21:00 +0000)]
Run through indent - no (intentional) changes to any code.

22 years agoPreparation for an LVM2 liblvm - pass cmd_context into each tool and
Alasdair Kergon [Mon, 11 Feb 2002 20:50:53 +0000 (20:50 +0000)]
Preparation for an LVM2 liblvm - pass cmd_context into each tool and
link some globals that the tools need into that structure.

22 years agoNow that most of the usage of 'stack' only occurs when there's an error,
Alasdair Kergon [Mon, 11 Feb 2002 18:25:18 +0000 (18:25 +0000)]
Now that most of the usage of 'stack' only occurs when there's an error,
don't suppress it from the screen output any longer.

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