]> sourceware.org Git - lvm2.git/log
lvm2.git
22 years agoo sync
Joe Thornber [Tue, 4 Dec 2001 14:14:07 +0000 (14:14 +0000)]
o  sync

22 years agoTweaks for make install. -m args replaces verbose to display maps.
Alasdair Kergon [Mon, 3 Dec 2001 20:23:53 +0000 (20:23 +0000)]
Tweaks for make install.  -m args replaces verbose to display maps.

22 years agoMore striping support & fixes.
Alasdair Kergon [Mon, 3 Dec 2001 16:27:16 +0000 (16:27 +0000)]
More striping support & fixes.

22 years agoo Comparison function was sorting things in ascending rather than
Joe Thornber [Fri, 30 Nov 2001 09:19:46 +0000 (09:19 +0000)]
o Comparison function was sorting things in ascending rather than
  descending order.

o free off the sort array when finished with it.

22 years agoo Striped allocator
Joe Thornber [Thu, 29 Nov 2001 18:45:35 +0000 (18:45 +0000)]
o  Striped allocator

o  Changed pv_map.c to maintain the list of free areas in size order, which
   is more helpful to the allocators.  If you want to allocate a bit of an
   area call consume_area(area, size), this will adjust the area if there's
   some space left and shuffle it to the correct place in the list.

Not tested.

22 years agoo I was reading striped volumes incorrectly.
Joe Thornber [Thu, 29 Nov 2001 14:13:43 +0000 (14:13 +0000)]
o  I was reading striped volumes incorrectly.

22 years ago o Confusingly, dmfs-tdir isn't gone, its now called dmfs-lv.c and its the
Steven Whitehouse [Thu, 29 Nov 2001 14:00:04 +0000 (14:00 +0000)]
 o Confusingly, dmfs-tdir isn't gone, its now called dmfs-lv.c and its the
   old dmfs-lv.c thats gone.
 o Dropped out support for multiple tables in line with ioctl interface
 o Some reordering to better support the userland library
 o Updated to 2.4.16

I'm fairly happy with the way that this is working now, so the next job is
to start the integration with the ioctl interface so there is a single
common dm.[ch] and selectable interfaces (fs or ioctl).

Further improvements can be made even now, but I hope to wait until we've
got this going and integrated and the libdm parts working as well before
investigating other avenues.

22 years agoNew patches for 2.4.16
Steven Whitehouse [Thu, 29 Nov 2001 13:44:46 +0000 (13:44 +0000)]
New patches for 2.4.16

22 years agoconfigure --with-interface=ioctl (default) or =fs to choose kernel interface
Alasdair Kergon [Wed, 28 Nov 2001 21:03:50 +0000 (21:03 +0000)]
configure --with-interface=ioctl (default) or =fs to choose kernel interface

22 years agoAdd autoconf & makefile structure like LVM2.
Alasdair Kergon [Wed, 28 Nov 2001 20:08:11 +0000 (20:08 +0000)]
Add autoconf & makefile structure like LVM2.

22 years agoAdd -t or --test arg to all tools that update metadata to avoid
Alasdair Kergon [Wed, 28 Nov 2001 18:03:11 +0000 (18:03 +0000)]
Add -t or --test arg to all tools that update metadata to avoid
committing metadata changes or (de)activating.

22 years agoo Output the correct format for the stripe target
Joe Thornber [Wed, 28 Nov 2001 17:52:27 +0000 (17:52 +0000)]
o  Output the correct format for the stripe target

22 years agoFix single stripe resizing.
Alasdair Kergon [Wed, 28 Nov 2001 16:16:44 +0000 (16:16 +0000)]
Fix single stripe resizing.

22 years agoMake source files depend on makefiles.
Alasdair Kergon [Wed, 28 Nov 2001 15:00:49 +0000 (15:00 +0000)]
Make source files depend on makefiles.

22 years agoo pool_free was leaving one block hanging around.
Joe Thornber [Wed, 28 Nov 2001 14:58:33 +0000 (14:58 +0000)]
o  pool_free was leaving one block hanging around.

22 years agoo Tool support for segments.
Alasdair Kergon [Wed, 28 Nov 2001 13:45:50 +0000 (13:45 +0000)]
o Tool support for segments.
o vgmerge working.

22 years agoUse CFLAGS during make rule generation.
Alasdair Kergon [Wed, 28 Nov 2001 12:28:03 +0000 (12:28 +0000)]
Use CFLAGS during make rule generation.

22 years agoo pool-debug.c contains an alternative implementation of pool that gets
Joe Thornber [Wed, 28 Nov 2001 09:13:00 +0000 (09:13 +0000)]
o  pool-debug.c contains an alternative implementation of pool that gets
   a seperate chunk of memory from dbg_malloc for each pool_alloc.  This
   will allow the bounds checking code in dbg_malloc to do it's stuff.

o  The normal implementation moved to pool-fast.c

o  pool.c now just contains a #ifdef and includes the appropriate .c file.

Alasdair, could you make sure that gcc -MM get's passed all the
CFLAGS please, otherwise the dependencies get calculated incorrectly.

22 years agoo Turn on pool debugging by default (-DDEBUG_POOL)
Joe Thornber [Wed, 28 Nov 2001 09:07:53 +0000 (09:07 +0000)]
o  Turn on pool debugging by default (-DDEBUG_POOL)

22 years agoFix a memory smash.
Alasdair Kergon [Tue, 27 Nov 2001 23:12:06 +0000 (23:12 +0000)]
Fix a memory smash.

22 years agoo extra error checking
Joe Thornber [Tue, 27 Nov 2001 20:03:45 +0000 (20:03 +0000)]
o extra error checking

22 years agoo These now compile.
Joe Thornber [Tue, 27 Nov 2001 17:39:15 +0000 (17:39 +0000)]
o  These now compile.

22 years agoo Get format1 building.
Joe Thornber [Tue, 27 Nov 2001 17:29:56 +0000 (17:29 +0000)]
o  Get format1 building.

22 years agovgmerge first cut
Alasdair Kergon [Tue, 27 Nov 2001 17:02:24 +0000 (17:02 +0000)]
vgmerge first cut

22 years agoo Sync up todays work on converting to the segmented representation of
Joe Thornber [Tue, 27 Nov 2001 16:37:33 +0000 (16:37 +0000)]
o  Sync up todays work on converting to the segmented representation of
   logical volumes.  It includes:

   format1 changes.

   metadata.h changes.

   lv_manip.c changed (striped allocation still not done though).

   activate.c changes.

Nothing has been near a compiler as yet.

Alasdair can you look at changing display.c to use to output the mappings
in a more segment oriented format please ?

I haven't put the span list into struct physical_volume to represent allocated
extents.  I think the burden of maintaining it for things like lv_extend may
out weigh it's uses.

22 years agoTool support for multiple (striped) segments (incomplete).
Alasdair Kergon [Tue, 27 Nov 2001 13:42:37 +0000 (13:42 +0000)]
Tool support for multiple (striped) segments (incomplete).

22 years agoo change chunk_size to stripe_size
Joe Thornber [Mon, 26 Nov 2001 16:30:43 +0000 (16:30 +0000)]
o  change chunk_size to stripe_size

22 years agoo More metadata changes.
Joe Thornber [Mon, 26 Nov 2001 16:18:48 +0000 (16:18 +0000)]
o  More metadata changes.

22 years agoLV create/extend prototype changes for striping
Alasdair Kergon [Mon, 26 Nov 2001 15:31:46 +0000 (15:31 +0000)]
LV create/extend prototype changes for striping

22 years agoo make it obvious that stripe_segment is variable sized.
Joe Thornber [Mon, 26 Nov 2001 13:15:22 +0000 (13:15 +0000)]
o  make it obvious that stripe_segment is variable sized.

22 years agoo segments will have to be held as an array of pointers since they're now
Joe Thornber [Mon, 26 Nov 2001 13:03:36 +0000 (13:03 +0000)]
o  segments will have to be held as an array of pointers since they're now
   variable sized.

22 years agoo sync the new in core rep. for Alasdair.
Joe Thornber [Mon, 26 Nov 2001 12:49:29 +0000 (12:49 +0000)]
o  sync the new in core rep. for Alasdair.

   This will break everything !  Hopefully things will be working again by
   this evening.

22 years agoadditional patch required
Alasdair Kergon [Fri, 23 Nov 2001 12:35:31 +0000 (12:35 +0000)]
additional patch required

22 years ago o Revised seq_file usage after discussions on linux-fsdevel
Steven Whitehouse [Thu, 22 Nov 2001 15:14:20 +0000 (15:14 +0000)]
 o Revised seq_file usage after discussions on linux-fsdevel

22 years agoo Make sure that every switch has a short option, even if it's
Joe Thornber [Thu, 22 Nov 2001 14:37:07 +0000 (14:37 +0000)]
o  Make sure that every switch has a short option, even if it's
   non-displayable so we can remove the pointer mangling that was
   breaking 64bit arch.s

22 years agoo activation & active status tests
Alasdair Kergon [Wed, 21 Nov 2001 19:32:35 +0000 (19:32 +0000)]
o activation & active status tests
o lvdisplay fields from kernel
o update lv->size on resize

22 years agodmdir path
Alasdair Kergon [Wed, 21 Nov 2001 19:20:41 +0000 (19:20 +0000)]
dmdir path

22 years agoo Remove an old debug statement
Joe Thornber [Wed, 21 Nov 2001 18:24:22 +0000 (18:24 +0000)]
o  Remove an old debug statement

22 years agoo Display major number
Joe Thornber [Wed, 21 Nov 2001 18:12:41 +0000 (18:12 +0000)]
o  Display major number

22 years agoo use the major number returned from dm_ioctl.
Joe Thornber [Wed, 21 Nov 2001 17:57:57 +0000 (17:57 +0000)]
o  use the major number returned from dm_ioctl.

22 years agoo There's no need to prefix dm_dir() with /dev/ anymore
Joe Thornber [Wed, 21 Nov 2001 17:20:49 +0000 (17:20 +0000)]
o  There's no need to prefix dm_dir() with /dev/ anymore

22 years agoo You can now specify the dev directory for libdm
Joe Thornber [Wed, 21 Nov 2001 17:08:37 +0000 (17:08 +0000)]
o  You can now specify the dev directory for libdm

o  dm_dir() returns the full path to the device-mapper dir (eg, /dev/device-mapper).

o  put stat in on _rm_node

22 years agoo Removed _check_devfs
Joe Thornber [Wed, 21 Nov 2001 16:47:10 +0000 (16:47 +0000)]
o  Removed _check_devfs

o  We now do a stat to see if the device node is there

22 years agoo Remove hard coded path to /dev/device-mapper/control
Joe Thornber [Wed, 21 Nov 2001 15:49:45 +0000 (15:49 +0000)]
o  Remove hard coded path to /dev/device-mapper/control

22 years agoTidy makefiles
Alasdair Kergon [Wed, 21 Nov 2001 15:41:14 +0000 (15:41 +0000)]
Tidy makefiles

22 years agoo Change name of libdm.h
Joe Thornber [Wed, 21 Nov 2001 15:15:37 +0000 (15:15 +0000)]
o  Change name of libdm.h

22 years agoo Use MKDEV to build the dev_t for mknod
Joe Thornber [Wed, 21 Nov 2001 15:14:35 +0000 (15:14 +0000)]
o  Use MKDEV to build the dev_t for mknod

22 years agoo Don't use dmt->dmi until it has been initialised.
Joe Thornber [Wed, 21 Nov 2001 14:52:16 +0000 (14:52 +0000)]
o  Don't use dmt->dmi until it has been initialised.

22 years agoo Migration of device-mapper from LVM_WORK to it's own (public) repository.
Joe Thornber [Wed, 21 Nov 2001 12:47:42 +0000 (12:47 +0000)]
o  Migration of device-mapper from LVM_WORK to it's own (public) repository.
   Please use this one from now on.\18

22 years agoo Oops, I thought this was checked in ages ago.
Joe Thornber [Wed, 21 Nov 2001 09:21:31 +0000 (09:21 +0000)]
o  Oops, I thought this was checked in ages ago.

22 years agoo Sync. only
Joe Thornber [Wed, 21 Nov 2001 09:20:05 +0000 (09:20 +0000)]
o  Sync. only

22 years agoo _emit_target wasn't spotting contiguous targets properly.
Joe Thornber [Mon, 19 Nov 2001 15:44:06 +0000 (15:44 +0000)]
o  _emit_target wasn't spotting contiguous targets properly.

22 years agoo Use new info interface to dm.
Joe Thornber [Mon, 19 Nov 2001 15:38:39 +0000 (15:38 +0000)]
o  Use new info interface to dm.

22 years agovgdisplay
Alasdair Kergon [Mon, 19 Nov 2001 15:20:50 +0000 (15:20 +0000)]
vgdisplay

22 years agofile cmgr.h was initially added on branch CLUSTER_TAG.
Patrick Caulfield [Mon, 19 Nov 2001 14:40:32 +0000 (14:40 +0000)]
file cmgr.h was initially added on branch CLUSTER_TAG.

22 years agofile cmgr.c was initially added on branch CLUSTER_TAG.
Patrick Caulfield [Mon, 19 Nov 2001 14:40:32 +0000 (14:40 +0000)]
file cmgr.c was initially added on branch CLUSTER_TAG.

22 years agofile clvm.h was initially added on branch CLUSTER_TAG.
Patrick Caulfield [Mon, 19 Nov 2001 14:40:32 +0000 (14:40 +0000)]
file clvm.h was initially added on branch CLUSTER_TAG.

22 years agoZero first 4k of new LVs.
Alasdair Kergon [Fri, 16 Nov 2001 15:38:52 +0000 (15:38 +0000)]
Zero first 4k of new LVs.

22 years agoDon't need EXTRA_LIBS as autoconf fills in LIBS for us with all that is needed.
Patrick Caulfield [Fri, 16 Nov 2001 11:39:13 +0000 (11:39 +0000)]
Don't need EXTRA_LIBS as autoconf fills in LIBS for us with all that is needed.

BTW if there are any *real* autoconf experts out there please feel free to flame
me.

22 years agosize_ts aren't really pointers but there are no format specifiers for them,
Patrick Caulfield [Fri, 16 Nov 2001 11:37:45 +0000 (11:37 +0000)]
size_ts aren't really pointers but there are no format specifiers for them,
so this will just have to do.

22 years agoFix format characters for printing size_ts
Patrick Caulfield [Fri, 16 Nov 2001 10:56:11 +0000 (10:56 +0000)]
Fix format characters for printing size_ts

22 years agoDo substitution on LIBS so that those platforms that need -lncurses as well as
Patrick Caulfield [Fri, 16 Nov 2001 10:40:16 +0000 (10:40 +0000)]
Do substitution on LIBS so that those platforms that need -lncurses as well as
lreadline will work.

22 years agolvrename (without reactivation)
Alasdair Kergon [Thu, 15 Nov 2001 17:27:45 +0000 (17:27 +0000)]
lvrename (without reactivation)

22 years agoUse POSIX defined PRIu64 for formatting 64 bit unsigned integer types
Patrick Caulfield [Thu, 15 Nov 2001 15:18:53 +0000 (15:18 +0000)]
Use POSIX defined PRIu64 for formatting 64 bit unsigned integer types

22 years agoUse FMT_64 to format 64bit types
Patrick Caulfield [Thu, 15 Nov 2001 14:27:51 +0000 (14:27 +0000)]
Use FMT_64 to format 64bit types

22 years agodefine FMT_64 to be the right format string for 64-bit types a la GFS
Patrick Caulfield [Thu, 15 Nov 2001 14:27:34 +0000 (14:27 +0000)]
define FMT_64 to be the right format string for 64-bit types a la GFS

22 years agoUse inttypes.h
Alasdair Kergon [Thu, 15 Nov 2001 14:14:03 +0000 (14:14 +0000)]
Use inttypes.h

22 years ago#include <string.h> for memset
Patrick Caulfield [Thu, 15 Nov 2001 11:46:00 +0000 (11:46 +0000)]
#include <string.h> for memset

22 years agoMore LV-related tidying. lvdisplay without args now shows all LVs.
Alasdair Kergon [Wed, 14 Nov 2001 18:38:07 +0000 (18:38 +0000)]
More LV-related tidying.  lvdisplay without args now shows all LVs.

22 years agoAvoid generating duplicate lv names
Alasdair Kergon [Wed, 14 Nov 2001 14:12:01 +0000 (14:12 +0000)]
Avoid generating duplicate lv names

22 years agoMiscellaneous tidying
Alasdair Kergon [Wed, 14 Nov 2001 13:52:38 +0000 (13:52 +0000)]
Miscellaneous tidying

22 years agoo lvcreate no longer needs the explicit -n flag
Joe Thornber [Wed, 14 Nov 2001 12:07:37 +0000 (12:07 +0000)]
o  lvcreate no longer needs the explicit -n flag

o  disabled zeroing of lv until bug's worked out

22 years agoo Prefix static var with '_'
Joe Thornber [Wed, 14 Nov 2001 10:44:14 +0000 (10:44 +0000)]
o  Prefix static var with '_'

22 years agoo Added dev_open and dev_close functions
Joe Thornber [Wed, 14 Nov 2001 10:01:52 +0000 (10:01 +0000)]
o  Added dev_open and dev_close functions

o  Changed disk-rep to use these

o  if NDEBUG is not defined the dev_cache will check for open devices on
   teardown.

I was hoping this would speed things up.  But I'm still getting:

reti:/home/joe/sistina/LVM2/tools# time ./lvm vgchange -a n
  Volume group vg0 successfully changed

real    0m5.751s
user    0m0.060s
sys     0m0.070s

even though I have only 1 device with the vg on it passing the filters.

22 years agoo Deal with sparse lv arrays (on disk)
Joe Thornber [Tue, 13 Nov 2001 18:52:52 +0000 (18:52 +0000)]
o  Deal with sparse lv arrays (on disk)

o  new fn. dev_zero which zero's an area of a device

22 years agoo lvdisplay now shows LE / PV map
Alasdair Kergon [Tue, 13 Nov 2001 17:53:06 +0000 (17:53 +0000)]
o lvdisplay now shows LE / PV map
o fix LE allocation when first PV is full
o reduce VG free_count when removing PVs from VG

22 years agoo Put underscore between vg and lv name.
Joe Thornber [Tue, 13 Nov 2001 16:14:54 +0000 (16:14 +0000)]
o  Put underscore between vg and lv name.

22 years agoMerge lvreduce & lvextend into lvresize.
Alasdair Kergon [Tue, 13 Nov 2001 14:17:50 +0000 (14:17 +0000)]
Merge lvreduce & lvextend into lvresize.

22 years agoo Stuff
Joe Thornber [Mon, 12 Nov 2001 19:28:50 +0000 (19:28 +0000)]
o  Stuff

22 years agoo Add ALLOC_SIMPLE
Joe Thornber [Mon, 12 Nov 2001 17:55:05 +0000 (17:55 +0000)]
o  Add ALLOC_SIMPLE

22 years agoRemove hard-coding and create device-mapper directory if required
Alasdair Kergon [Mon, 12 Nov 2001 17:21:25 +0000 (17:21 +0000)]
Remove hard-coding and create device-mapper directory if required

22 years agoo if any pattern rejects a device, and there were no accepts then reject !
Joe Thornber [Mon, 12 Nov 2001 17:06:33 +0000 (17:06 +0000)]
o  if any pattern rejects a device, and there were no accepts then reject !

22 years agoo check result of an allocation
Joe Thornber [Mon, 12 Nov 2001 16:00:52 +0000 (16:00 +0000)]
o  check result of an allocation

22 years agoiospace restructured
Alasdair Kergon [Mon, 12 Nov 2001 15:10:01 +0000 (15:10 +0000)]
iospace restructured

22 years agoo add fs.c to the Makefile
Joe Thornber [Mon, 12 Nov 2001 13:02:06 +0000 (13:02 +0000)]
o  add fs.c to the Makefile

22 years agoo add uplink from vg to cmd_context
Joe Thornber [Mon, 12 Nov 2001 12:23:10 +0000 (12:23 +0000)]
o  add uplink from vg to cmd_context

22 years agoo Plug in fs_(add|del)_lv
Joe Thornber [Mon, 12 Nov 2001 12:20:58 +0000 (12:20 +0000)]
o  Plug in fs_(add|del)_lv

22 years agoo Split struct io_space into:
Joe Thornber [Mon, 12 Nov 2001 12:16:57 +0000 (12:16 +0000)]
o  Split struct io_space into:

   struct format_handler - format methods
   struct format_instance - links instance data, methods, and cmd
   struct cmd_context - dev_dir, memory allocator, device filter

22 years agoo Compile errors
Joe Thornber [Mon, 12 Nov 2001 11:48:31 +0000 (11:48 +0000)]
o  Compile errors

22 years agoo Ready for testing
Joe Thornber [Mon, 12 Nov 2001 11:42:29 +0000 (11:42 +0000)]
o  Ready for testing

22 years ago o Fix module ref counts so that you can actually unload dm-mod
Steven Whitehouse [Sat, 10 Nov 2001 17:11:36 +0000 (17:11 +0000)]
 o Fix module ref counts so that you can actually unload dm-mod
   N.B. This means that you have to take very great care in the event that
   you want to access the dcache tree from in kernel

 o Added extra field to allow out of memory conditions to result in the
   correct error code. (This hasn't received a lot of testing...)

I've ditched the final project (which would have cleared my whole list)
since its got other complications which I don't have time to fix right
now. Still as Meatloaf says, two out of three ain't bad!

22 years agoo Added lvextend
Alasdair Kergon [Fri, 9 Nov 2001 22:01:04 +0000 (22:01 +0000)]
o Added lvextend
o Full signed arguments to lvreduce/lvextend
o Consistent lv_number/pe map use
o Populate pv->pe_allocated
o Fixes for allocation/writing of multiple LVs

22 years agosync only, not ready yet
Joe Thornber [Fri, 9 Nov 2001 08:48:22 +0000 (08:48 +0000)]
sync only, not ready yet

22 years agolvdisplay & lvreduce
Alasdair Kergon [Thu, 8 Nov 2001 16:15:58 +0000 (16:15 +0000)]
lvdisplay & lvreduce

22 years agomore todo
Heinz Mauelshagen [Thu, 8 Nov 2001 08:19:06 +0000 (08:19 +0000)]
more todo

22 years agoo Always set LVM_READ.
Alasdair Kergon [Wed, 7 Nov 2001 22:47:43 +0000 (22:47 +0000)]
o Always set LVM_READ.
o Avoid duplicate deallocation.

22 years agoOops. Forgot to check this in earlier. Changes as per previous check in
Steven Whitehouse [Wed, 7 Nov 2001 19:27:17 +0000 (19:27 +0000)]
Oops. Forgot to check this in earlier. Changes as per previous check in
comments.

22 years agoo more todo
Joe Thornber [Wed, 7 Nov 2001 17:38:25 +0000 (17:38 +0000)]
o  more todo

22 years agoo Lot's to do
Joe Thornber [Wed, 7 Nov 2001 17:25:17 +0000 (17:25 +0000)]
o  Lot's to do

22 years agoo Added lvs_in_vgs_opened
Joe Thornber [Wed, 7 Nov 2001 15:02:07 +0000 (15:02 +0000)]
o  Added lvs_in_vgs_opened

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