]> sourceware.org Git - lvm2.git/log
lvm2.git
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.

22 years agodbg_free(tc->desc)
Alasdair Kergon [Mon, 11 Feb 2002 18:21:54 +0000 (18:21 +0000)]
dbg_free(tc->desc)

22 years agoDocument return codes.
Alasdair Kergon [Mon, 11 Feb 2002 17:42:02 +0000 (17:42 +0000)]
Document return codes.

22 years agoo Split activate.c into a high level (remaining in activate.c) and low level (ll...
Joe Thornber [Mon, 11 Feb 2002 15:48:34 +0000 (15:48 +0000)]
o  Split activate.c into a high level (remaining in activate.c) and low level (ll-activate.[hc]) API.

o  Creation of a device from an lv now lives in activate-lv.c

22 years agoo Support locking with local lock files
Alasdair Kergon [Mon, 11 Feb 2002 15:42:34 +0000 (15:42 +0000)]
o Support locking with local lock files
o Disable control-c during updates (except if blocked waiting for a lock)

22 years agoo Little recipe for testing LVM2 with loopback devices.
Joe Thornber [Mon, 11 Feb 2002 12:01:59 +0000 (12:01 +0000)]
o  Little recipe for testing LVM2 with loopback devices.

22 years agoo Added functions to display what's in the archive.
Joe Thornber [Mon, 11 Feb 2002 11:43:17 +0000 (11:43 +0000)]
o  Added functions to display what's in the archive.

o  For now vgcfgrestore -l <vg> displays this list.

A bit hacky, but it'll get better.

22 years agoLocking prototypes.
Alasdair Kergon [Fri, 8 Feb 2002 14:30:37 +0000 (14:30 +0000)]
Locking prototypes.

22 years agomove defaults.h
Alasdair Kergon [Fri, 8 Feb 2002 14:28:52 +0000 (14:28 +0000)]
move defaults.h

22 years agoMove defaults.h
Alasdair Kergon [Fri, 8 Feb 2002 14:28:14 +0000 (14:28 +0000)]
Move defaults.h

22 years agoo I decided that the archive_format shouldn't really be a format at
Joe Thornber [Fri, 8 Feb 2002 11:58:18 +0000 (11:58 +0000)]
o I decided that the archive_format shouldn't really be a format at
  all since it only supports vg_write.  It has been replaced with:

int archive_vg(struct volume_group *vg,
       const char *dir,
       const char *desc,
       uint32_t retain_days,
       uint32_t min_archive);

which is now called directly by tools/archive.c

22 years agoo Add cmd_line field to struct cmd_context
Joe Thornber [Fri, 8 Feb 2002 11:13:47 +0000 (11:13 +0000)]
o  Add cmd_line field to struct cmd_context

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.

22 years agoPoor mans lvmdiskscan
Heinz Mauelshagen [Tue, 5 Feb 2002 14:31:57 +0000 (14:31 +0000)]
Poor mans lvmdiskscan

22 years agoAnother release (includes some fixes from last week; persistent minors,
Alasdair Kergon [Mon, 4 Feb 2002 13:30:21 +0000 (13:30 +0000)]
Another release (includes some fixes from last week;  persistent minors,
partial activation etc.)

22 years agolv->minor >= 0 (ejt)
Alasdair Kergon [Mon, 4 Feb 2002 13:08:31 +0000 (13:08 +0000)]
lv->minor >= 0  (ejt)

22 years agoBasic support for persistent minor numbers;
Alasdair Kergon [Fri, 1 Feb 2002 17:54:39 +0000 (17:54 +0000)]
Basic support for persistent minor numbers;
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

22 years agoFailure signalled by -1 not 0; MAX_DEVICES 256 (was 64); change a '>' to '>='.
Alasdair Kergon [Fri, 1 Feb 2002 17:39:20 +0000 (17:39 +0000)]
Failure signalled by -1 not 0; MAX_DEVICES 256 (was 64); change a '>' to '>='.

22 years agoDisplay error when running unimplemented functions.
Alasdair Kergon [Thu, 31 Jan 2002 20:37:26 +0000 (20:37 +0000)]
Display error when running unimplemented functions.

22 years agoRemove gcc -D to support as different gcc versions handle it differently.
Alasdair Kergon [Thu, 31 Jan 2002 20:15:26 +0000 (20:15 +0000)]
Remove gcc -D to support as different gcc versions handle it differently.

22 years ago"exit" means "quit" (lamer)
Alasdair Kergon [Thu, 31 Jan 2002 20:08:52 +0000 (20:08 +0000)]
"exit" means "quit"  (lamer)

22 years agoo Remove redundant dbg_free.
Joe Thornber [Thu, 31 Jan 2002 15:28:30 +0000 (15:28 +0000)]
o  Remove redundant dbg_free.

22 years agoRemove stray comma.
Alasdair Kergon [Wed, 30 Jan 2002 17:25:51 +0000 (17:25 +0000)]
Remove stray comma.

22 years agoPropagate volume group read-only setting down to its logical volumes.
Alasdair Kergon [Wed, 30 Jan 2002 17:12:14 +0000 (17:12 +0000)]
Propagate volume group read-only setting down to its logical volumes.
(Might sometimes be safe to relax this restriction.)

22 years agoBasic support for (read-only) partial activation if any PVs are
Alasdair Kergon [Wed, 30 Jan 2002 15:33:12 +0000 (15:33 +0000)]
Basic support for (read-only) partial activation if any PVs are
missing from a VG.  (Linear targets use the device-mapper 'error' target
which returns ioerror; striped targets use '/dev/ioerror' for now - which must
already exist e.g. as a sufficiently large block device version of /dev/zero).

22 years agoquotes around names in output
Heinz Mauelshagen [Wed, 30 Jan 2002 15:04:48 +0000 (15:04 +0000)]
quotes around names in output

22 years agoAllocate fixed space for vg->system_id when vg is created, instead of
Alasdair Kergon [Wed, 30 Jan 2002 12:47:29 +0000 (12:47 +0000)]
Allocate fixed space for vg->system_id when vg is created, instead of
dynamically.

22 years agoCorrect statement order for case when 'stripes' parameter is not supplied.
Alasdair Kergon [Wed, 30 Jan 2002 12:17:40 +0000 (12:17 +0000)]
Correct statement order for case when 'stripes' parameter is not supplied.

22 years agoadd vgimport
Alasdair Kergon [Tue, 29 Jan 2002 19:23:46 +0000 (19:23 +0000)]
add vgimport

22 years agoo A vgimport implementation
Alasdair Kergon [Tue, 29 Jan 2002 19:19:37 +0000 (19:19 +0000)]
o A vgimport implementation
o Require -a or <list of vgs> parameters with vgexport/vgimport
o Allow pvcreate -ff to destroy exported/partial VGs

22 years agoo Basic support for exporting (but importing not completed yet).
Alasdair Kergon [Tue, 29 Jan 2002 17:23:33 +0000 (17:23 +0000)]
o Basic support for exporting (but importing not completed yet).
o When volume group does not have write flag set, prevent changes to it.
o Preparation for partial activation (not completed yet).

22 years agoDisplay 'exported' status.
Alasdair Kergon [Tue, 29 Jan 2002 16:30:18 +0000 (16:30 +0000)]
Display 'exported' status.

22 years agoAdd list_iterate that's safe with deletions.
Alasdair Kergon [Tue, 29 Jan 2002 16:28:52 +0000 (16:28 +0000)]
Add list_iterate that's safe with deletions.

22 years agoDate changed
Heinz Mauelshagen [Tue, 29 Jan 2002 15:54:49 +0000 (15:54 +0000)]
Date changed

22 years agoZero gap after PV structure on write to disk in order to make non LVM tools happier...
Heinz Mauelshagen [Tue, 29 Jan 2002 15:52:11 +0000 (15:52 +0000)]
Zero gap after PV structure on write to disk in order to make non LVM tools happier (AED's idea and patch for LVM1)

22 years agofixed div bug in calculation of end in calculate_extent_count
Heinz Mauelshagen [Tue, 29 Jan 2002 15:43:04 +0000 (15:43 +0000)]
fixed div bug in calculation of end in calculate_extent_count

22 years agoCheck that vgname doesn't already exits in dev_dir
Heinz Mauelshagen [Mon, 28 Jan 2002 16:30:42 +0000 (16:30 +0000)]
Check that vgname doesn't already exits in dev_dir

22 years agoo There were some alignment problems with pool-debug which I've resolved
Joe Thornber [Mon, 28 Jan 2002 09:16:09 +0000 (09:16 +0000)]
o  There were some alignment problems with pool-debug which I've resolved
   by allocating the data block with an additional dbg_malloc.

o  Added an assertion to check that no one is requesting alternate
   alignment for memory allocated from pool.  I can't see us needing this
   for LVM2.

22 years ago*** empty log message ***
Alasdair Kergon [Sun, 27 Jan 2002 21:48:05 +0000 (21:48 +0000)]
*** empty log message ***

22 years agoTweak some error message levels.
Alasdair Kergon [Sun, 27 Jan 2002 21:30:47 +0000 (21:30 +0000)]
Tweak some error message levels.

22 years agoIf lv isn't active, skip reactivation.
Alasdair Kergon [Fri, 25 Jan 2002 22:58:01 +0000 (22:58 +0000)]
If lv isn't active, skip reactivation.

22 years agoPrevent lvextend from adding segments with different stripe characteristics
Alasdair Kergon [Fri, 25 Jan 2002 21:14:43 +0000 (21:14 +0000)]
Prevent lvextend from adding segments with different stripe characteristics
at the moment because the old LVM format doesn't support this.

22 years agoThe latest attempt at making extended striped LVs work portably with LVM1.
Alasdair Kergon [Fri, 25 Jan 2002 20:24:14 +0000 (20:24 +0000)]
The latest attempt at making extended striped LVs work portably with LVM1.

22 years agoSet pv->pe_size when reading in text-file backup.
Alasdair Kergon [Fri, 25 Jan 2002 20:21:13 +0000 (20:21 +0000)]
Set pv->pe_size when reading in text-file backup.
Otherwise LVM1 decides the PV structure is corrupt.
But do we need to keep both pv->pe_size and vg->extent_size
in internal metadata or can we generate pvd->pe_size when writing out
a PV that belongs to a VG?

22 years agoOnly remove symbolic links when deactivating.
Alasdair Kergon [Fri, 25 Jan 2002 20:17:44 +0000 (20:17 +0000)]
Only remove symbolic links when deactivating.
(if this code didn't create it, don't delete it)

22 years agoo Tidy
Joe Thornber [Fri, 25 Jan 2002 13:41:13 +0000 (13:41 +0000)]
o  Tidy

22 years agoHave a pe_total check using theoretically big number instead of the
Alasdair Kergon [Thu, 24 Jan 2002 23:35:56 +0000 (23:35 +0000)]
Have a pe_total check using theoretically big number instead of the
unnecessarily small limit LVM1 imposes in vgcreate (but not vgextend)

22 years agoDon't bother to write out an empty cache.
Alasdair Kergon [Thu, 24 Jan 2002 23:17:16 +0000 (23:17 +0000)]
Don't bother to write out an empty cache.

22 years agoFix the device cache to cope reasonably safely with device name changes.
Alasdair Kergon [Thu, 24 Jan 2002 23:16:19 +0000 (23:16 +0000)]
Fix the device cache to cope reasonably safely with device name changes.
This should be a rare occurrence so the aim is to recover if it's
straightforward to do so, otherwise just to abort the operation.
If people *knowingly* change device names, they should always run vgscan
afterwards.

A few bytes of memory gets leaked inside a pool each time an alias
has to be discarded - it's not worth restructuring the code to reuse it.

More of LVM2 needs updating to pass device objects (or uuids) about
instead of pathnames so that resolution of pathname->object only happens
once per operation.

dev_cache_get() should now always return the *current* device at the path given

dev_name_confirmed() replaces dev_name() whenever it's important to
know that name for the device is still current (ie when opening it).
If the cache doesn't know a current name, the function fails.

dev_open() guarantees that the file descriptor returned is for the dev_t
of the device structure it was passed.

22 years agoClear a FIXME about checking for identical devices by comparing dev_t
Alasdair Kergon [Thu, 24 Jan 2002 22:37:24 +0000 (22:37 +0000)]
Clear a FIXME about checking for identical devices by comparing dev_t
instead of name.

22 years agoremoved ~64limit for PEs per PV agk introduced
Heinz Mauelshagen [Thu, 24 Jan 2002 19:20:35 +0000 (19:20 +0000)]
removed ~64limit for PEs per PV agk introduced

22 years agoo Limit for number of extents should be 65534.
Joe Thornber [Thu, 24 Jan 2002 17:32:56 +0000 (17:32 +0000)]
o  Limit for number of extents should be 65534.

22 years agoImprove allocation error messages when PVs in a VG have the allocatable
Alasdair Kergon [Thu, 24 Jan 2002 17:26:00 +0000 (17:26 +0000)]
Improve allocation error messages when PVs in a VG have the allocatable
flag unset.

22 years agoImpose max PE limit for each PV.
Alasdair Kergon [Thu, 24 Jan 2002 17:24:32 +0000 (17:24 +0000)]
Impose max PE limit for each PV.

22 years agoo Add check for > 65k extents in a single lv.
Joe Thornber [Thu, 24 Jan 2002 17:16:36 +0000 (17:16 +0000)]
o Add check for > 65k extents in a single lv.

22 years agoo Add extra parameter to lv_manip fns
Joe Thornber [Thu, 24 Jan 2002 17:15:49 +0000 (17:15 +0000)]
o  Add extra parameter to lv_manip fns

22 years agoo extra fid parameter to lv_manip fns
Joe Thornber [Thu, 24 Jan 2002 17:15:24 +0000 (17:15 +0000)]
o extra fid parameter to lv_manip fns

22 years agoo Remove pointless calculation.
Joe Thornber [Thu, 24 Jan 2002 14:15:42 +0000 (14:15 +0000)]
o  Remove pointless calculation.

22 years agoIgnore all except one PV found with the same UUID. Use one which
Alasdair Kergon [Thu, 24 Jan 2002 13:36:33 +0000 (13:36 +0000)]
Ignore all except one PV found with the same UUID.  Use one which
has the md major number if there is such.

22 years agoFix dev_close arg.
Alasdair Kergon [Thu, 24 Jan 2002 13:31:18 +0000 (13:31 +0000)]
Fix dev_close arg.

22 years agoRemove any core files on distclean.
Alasdair Kergon [Thu, 24 Jan 2002 13:30:40 +0000 (13:30 +0000)]
Remove any core files on distclean.

22 years agoo typo
Joe Thornber [Thu, 24 Jan 2002 09:54:09 +0000 (09:54 +0000)]
o typo

22 years agoo Cut and paste description of how pvmove works that I was mailing someone.
Joe Thornber [Thu, 24 Jan 2002 09:26:13 +0000 (09:26 +0000)]
o  Cut and paste description of how pvmove works that I was mailing someone.

22 years agoo Remove redundant symlink-handling code.
Alasdair Kergon [Wed, 23 Jan 2002 18:55:01 +0000 (18:55 +0000)]
o Remove redundant symlink-handling code.
o When opening device, return error if its cached name is incorrect (eg if
  it's changed since the cache was generated).  This prevents use until
  the cache is rebuilt (eg with vgscan).  Doesn't catch every case.

22 years agoAvoid using VG metadata on PVs that are not in VGs.
Alasdair Kergon [Wed, 23 Jan 2002 15:50:34 +0000 (15:50 +0000)]
Avoid using VG metadata on PVs that are not in VGs.

22 years ago*** empty log message ***
Alasdair Kergon [Wed, 23 Jan 2002 12:25:30 +0000 (12:25 +0000)]
*** empty log message ***

22 years agoSilently remove any existing symlink before creating a new one.
Alasdair Kergon [Tue, 22 Jan 2002 19:58:37 +0000 (19:58 +0000)]
Silently remove any existing symlink before creating a new one.

22 years agoUpdate with info on how to configure command output to look like LVM1
Alasdair Kergon [Tue, 22 Jan 2002 19:20:46 +0000 (19:20 +0000)]
Update with info on how to configure command output to look like LVM1

22 years agoReviewed interaction with lib/activate now that the interface has settled down.
Alasdair Kergon [Tue, 22 Jan 2002 19:11:12 +0000 (19:11 +0000)]
Reviewed interaction with lib/activate now that the interface has settled down.

22 years agoNew config options to customise message output.
Alasdair Kergon [Tue, 22 Jan 2002 15:33:57 +0000 (15:33 +0000)]
New config options to customise message output.

22 years agoCustomisable message output prefix / indentation.
Alasdair Kergon [Tue, 22 Jan 2002 15:33:40 +0000 (15:33 +0000)]
Customisable message output prefix / indentation.

22 years agoo added BUGS file.
Joe Thornber [Tue, 22 Jan 2002 14:40:38 +0000 (14:40 +0000)]
o  added BUGS file.

22 years agoo Fix inverted logic in list_empty test.
Joe Thornber [Tue, 22 Jan 2002 14:16:27 +0000 (14:16 +0000)]
o  Fix inverted logic in list_empty test.

22 years agoold file
Alasdair Kergon [Tue, 22 Jan 2002 13:29:34 +0000 (13:29 +0000)]
old file

22 years agoUpdate. Ready to release?
Alasdair Kergon [Tue, 22 Jan 2002 13:11:01 +0000 (13:11 +0000)]
Update.  Ready to release?

22 years agoNo need for file output to default to stderr now that log file can be
Alasdair Kergon [Mon, 21 Jan 2002 19:05:00 +0000 (19:05 +0000)]
No need for file output to default to stderr now that log file can be
specified in config file.

22 years agoInsert a missing hash_remove.
Alasdair Kergon [Mon, 21 Jan 2002 19:04:13 +0000 (19:04 +0000)]
Insert a missing hash_remove.

22 years agoo Allow fractional parts for size args. eg, lvcreate -L 34.4M
Joe Thornber [Mon, 21 Jan 2002 17:43:10 +0000 (17:43 +0000)]
o  Allow fractional parts for size args. eg, lvcreate -L 34.4M

o  Fix a couple of bugs related to the earlier lv_list change

22 years agoo Similar changes for lv_list.
Joe Thornber [Mon, 21 Jan 2002 16:49:32 +0000 (16:49 +0000)]
o  Similar changes for lv_list.

22 years agoo fail if create_pv_list would produce an empty list.
Joe Thornber [Mon, 21 Jan 2002 16:15:25 +0000 (16:15 +0000)]
o  fail if create_pv_list would produce an empty list.

22 years agoo Typo in comment
Joe Thornber [Mon, 21 Jan 2002 16:10:36 +0000 (16:10 +0000)]
o  Typo in comment

22 years agoo Changed
Joe Thornber [Mon, 21 Jan 2002 16:05:23 +0000 (16:05 +0000)]
o  Changed

   struct pv_list {
struct list list;
struct physical_volume pv;
   };

   to

   struct pv_list {
struct list list;
struct physical_volume *pv;
   };

o  New function in toollib 'create_pv_list', which creates a list of pv's
   from a given command line array of pv's.

o  Changed lvcreate/extend to use this (fixes lvextend [pv list] bug).

22 years agoIs this sufficient to fix make -j?
Alasdair Kergon [Mon, 21 Jan 2002 16:02:55 +0000 (16:02 +0000)]
Is this sufficient to fix make -j?

22 years agoFixx OB1 error in max LV and max PV numbers
Patrick Caulfield [Mon, 21 Jan 2002 14:53:47 +0000 (14:53 +0000)]
Fixx OB1 error in max LV and max PV numbers

22 years agoo Changed find_pv_in_vg, and find_lv_in_vg to return a struct pv_list * and
Joe Thornber [Mon, 21 Jan 2002 14:28:12 +0000 (14:28 +0000)]
o  Changed find_pv_in_vg, and find_lv_in_vg to return a struct pv_list * and
   struct lv_list * respectively.

22 years agoo names.[hc]
Joe Thornber [Mon, 21 Jan 2002 13:11:03 +0000 (13:11 +0000)]
o names.[hc]

22 years agoo lvdisplay now gives a segment map for the -m option.
Joe Thornber [Mon, 21 Jan 2002 12:05:39 +0000 (12:05 +0000)]
o  lvdisplay now gives a segment map for the -m option.

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