]>
sourceware.org Git - lvm2.git/log
Alasdair Kergon [Mon, 31 Dec 2001 22:12:03 +0000 (22:12 +0000)]
Add test mode parm.
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 "").
Alasdair Kergon [Mon, 31 Dec 2001 19:18:44 +0000 (19:18 +0000)]
vgcache.h inclusion (avoid compiler warning)
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
Alasdair Kergon [Mon, 31 Dec 2001 17:34:51 +0000 (17:34 +0000)]
Remove some old files.
Alasdair Kergon [Mon, 31 Dec 2001 17:26:42 +0000 (17:26 +0000)]
Redundant.
Alasdair Kergon [Mon, 31 Dec 2001 17:20:22 +0000 (17:20 +0000)]
Document lvm.conf fields
Alasdair Kergon [Mon, 31 Dec 2001 16:12:40 +0000 (16:12 +0000)]
Outline docs
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.
Alasdair Kergon [Mon, 31 Dec 2001 15:17:34 +0000 (15:17 +0000)]
Fix C99 error case handling (snprintf ret value >= buffer size).
Alasdair Kergon [Mon, 31 Dec 2001 15:14:44 +0000 (15:14 +0000)]
Fixes for compilation.
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?)
Alasdair Kergon [Thu, 20 Dec 2001 20:32:14 +0000 (20:32 +0000)]
Revised ioctl/dmfs merge with fixes for bugs found in tests.
Joe Thornber [Thu, 20 Dec 2001 16:05:14 +0000 (16:05 +0000)]
o Added a quick vgcfgbackup, needs parameters as yet.
Joe Thornber [Thu, 20 Dec 2001 12:27:41 +0000 (12:27 +0000)]
o Debug version of the pool_grow stuff.
Joe Thornber [Thu, 20 Dec 2001 11:52:54 +0000 (11:52 +0000)]
o sync backup changes
Patrick Caulfield [Tue, 18 Dec 2001 14:39:32 +0000 (14:39 +0000)]
Wipe the first label if writing the second one failed.
Joe Thornber [Mon, 17 Dec 2001 19:46:10 +0000 (19:46 +0000)]
o sync the backup stuff
Joe Thornber [Mon, 17 Dec 2001 17:59:58 +0000 (17:59 +0000)]
o history is now saved in ~/.lvm_history
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.
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.
Joe Thornber [Mon, 17 Dec 2001 14:05:43 +0000 (14:05 +0000)]
o Use lvm_snprintf
Joe Thornber [Mon, 17 Dec 2001 14:04:33 +0000 (14:04 +0000)]
o Add symlink for lvm-string.h
Joe Thornber [Mon, 17 Dec 2001 14:04:10 +0000 (14:04 +0000)]
o lvm_snprintf
Could everyone please use this from now on.
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.
Heinz Mauelshagen [Mon, 17 Dec 2001 11:07:33 +0000 (11:07 +0000)]
Typos in error messages
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.
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
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.
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.
Alasdair Kergon [Thu, 13 Dec 2001 15:08:58 +0000 (15:08 +0000)]
Handle orphan PVs too, so hints remain valid after vgreduce.
Joe Thornber [Thu, 13 Dec 2001 13:46:21 +0000 (13:46 +0000)]
o Man page for dmsetup
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.
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.
Alasdair Kergon [Wed, 12 Dec 2001 16:25:53 +0000 (16:25 +0000)]
fix for clean compilation
Joe Thornber [Wed, 12 Dec 2001 16:22:38 +0000 (16:22 +0000)]
o silly bugs
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.
Joe Thornber [Wed, 12 Dec 2001 14:54:24 +0000 (14:54 +0000)]
o Add error checking in _new_chunk
Joe Thornber [Wed, 12 Dec 2001 14:25:20 +0000 (14:25 +0000)]
o pool-debug versions of begin_object, grow_object etc.
Patrick Caulfield [Wed, 12 Dec 2001 09:09:04 +0000 (09:09 +0000)]
Build label code into the library
Patrick Caulfield [Wed, 12 Dec 2001 09:05:44 +0000 (09:05 +0000)]
Use a proper CRC calculation.
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.
Alasdair Kergon [Tue, 11 Dec 2001 16:26:34 +0000 (16:26 +0000)]
Apply make distclean to test subdirs too.
Patrick Caulfield [Tue, 11 Dec 2001 14:17:10 +0000 (14:17 +0000)]
Fix label filter.
Joe Thornber [Tue, 11 Dec 2001 12:29:25 +0000 (12:29 +0000)]
o Add output_date
Joe Thornber [Tue, 11 Dec 2001 12:18:56 +0000 (12:18 +0000)]
o flags.c reads and writes a status bitset
Joe Thornber [Tue, 11 Dec 2001 12:16:58 +0000 (12:16 +0000)]
o Split import-export.c into two files.
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.
Patrick Caulfield [Tue, 11 Dec 2001 11:42:30 +0000 (11:42 +0000)]
Label reading/writing code.
Not tested the filter yet.
Joe Thornber [Tue, 11 Dec 2001 11:40:34 +0000 (11:40 +0000)]
o Pretty print and read for uuid's
Patrick Caulfield [Tue, 11 Dec 2001 10:18:49 +0000 (10:18 +0000)]
Add a dev_get_sectsize call.
Alasdair Kergon [Fri, 7 Dec 2001 21:17:12 +0000 (21:17 +0000)]
Fixes for allocation of striped volumes.
Alasdair Kergon [Fri, 7 Dec 2001 21:15:33 +0000 (21:15 +0000)]
Fixes for library compilation.
Alasdair Kergon [Thu, 6 Dec 2001 14:20:38 +0000 (14:20 +0000)]
Moved across to device-mapper repository.
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.
Alasdair Kergon [Wed, 5 Dec 2001 16:41:52 +0000 (16:41 +0000)]
Various fixes & restructure to extract common code.
Steven Whitehouse [Wed, 5 Dec 2001 12:00:01 +0000 (12:00 +0000)]
o Removed unused MOD_INC/DEC_USE_COUNT
Steven Whitehouse [Wed, 5 Dec 2001 11:58:43 +0000 (11:58 +0000)]
o Added a few more projects
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.
Alasdair Kergon [Wed, 5 Dec 2001 00:04:18 +0000 (00:04 +0000)]
Correct activation message.
Alasdair Kergon [Tue, 4 Dec 2001 23:20:27 +0000 (23:20 +0000)]
Added more log messages.
Joe Thornber [Tue, 4 Dec 2001 14:14:07 +0000 (14:14 +0000)]
o sync
Alasdair Kergon [Mon, 3 Dec 2001 20:23:53 +0000 (20:23 +0000)]
Tweaks for make install. -m args replaces verbose to display maps.
Alasdair Kergon [Mon, 3 Dec 2001 16:27:16 +0000 (16:27 +0000)]
More striping support & fixes.
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.
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.
Joe Thornber [Thu, 29 Nov 2001 14:13:43 +0000 (14:13 +0000)]
o I was reading striped volumes incorrectly.
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.
Steven Whitehouse [Thu, 29 Nov 2001 13:44:46 +0000 (13:44 +0000)]
New patches for 2.4.16
Alasdair Kergon [Wed, 28 Nov 2001 21:03:50 +0000 (21:03 +0000)]
configure --with-interface=ioctl (default) or =fs to choose kernel interface
Alasdair Kergon [Wed, 28 Nov 2001 20:08:11 +0000 (20:08 +0000)]
Add autoconf & makefile structure like LVM2.
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.
Joe Thornber [Wed, 28 Nov 2001 17:52:27 +0000 (17:52 +0000)]
o Output the correct format for the stripe target
Alasdair Kergon [Wed, 28 Nov 2001 16:16:44 +0000 (16:16 +0000)]
Fix single stripe resizing.
Alasdair Kergon [Wed, 28 Nov 2001 15:00:49 +0000 (15:00 +0000)]
Make source files depend on makefiles.
Joe Thornber [Wed, 28 Nov 2001 14:58:33 +0000 (14:58 +0000)]
o pool_free was leaving one block hanging around.
Alasdair Kergon [Wed, 28 Nov 2001 13:45:50 +0000 (13:45 +0000)]
o Tool support for segments.
o vgmerge working.
Alasdair Kergon [Wed, 28 Nov 2001 12:28:03 +0000 (12:28 +0000)]
Use CFLAGS during make rule generation.
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.
Joe Thornber [Wed, 28 Nov 2001 09:07:53 +0000 (09:07 +0000)]
o Turn on pool debugging by default (-DDEBUG_POOL)
Alasdair Kergon [Tue, 27 Nov 2001 23:12:06 +0000 (23:12 +0000)]
Fix a memory smash.
Joe Thornber [Tue, 27 Nov 2001 20:03:45 +0000 (20:03 +0000)]
o extra error checking
Joe Thornber [Tue, 27 Nov 2001 17:39:15 +0000 (17:39 +0000)]
o These now compile.
Joe Thornber [Tue, 27 Nov 2001 17:29:56 +0000 (17:29 +0000)]
o Get format1 building.
Alasdair Kergon [Tue, 27 Nov 2001 17:02:24 +0000 (17:02 +0000)]
vgmerge first cut
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.
Alasdair Kergon [Tue, 27 Nov 2001 13:42:37 +0000 (13:42 +0000)]
Tool support for multiple (striped) segments (incomplete).
Joe Thornber [Mon, 26 Nov 2001 16:30:43 +0000 (16:30 +0000)]
o change chunk_size to stripe_size
Joe Thornber [Mon, 26 Nov 2001 16:18:48 +0000 (16:18 +0000)]
o More metadata changes.
Alasdair Kergon [Mon, 26 Nov 2001 15:31:46 +0000 (15:31 +0000)]
LV create/extend prototype changes for striping
Joe Thornber [Mon, 26 Nov 2001 13:15:22 +0000 (13:15 +0000)]
o make it obvious that stripe_segment is variable sized.
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.
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.
Alasdair Kergon [Fri, 23 Nov 2001 12:35:31 +0000 (12:35 +0000)]
additional patch required
Steven Whitehouse [Thu, 22 Nov 2001 15:14:20 +0000 (15:14 +0000)]
o Revised seq_file usage after discussions on linux-fsdevel
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
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
Alasdair Kergon [Wed, 21 Nov 2001 19:20:41 +0000 (19:20 +0000)]
dmdir path
Joe Thornber [Wed, 21 Nov 2001 18:24:22 +0000 (18:24 +0000)]
o Remove an old debug statement
Joe Thornber [Wed, 21 Nov 2001 18:12:41 +0000 (18:12 +0000)]
o Display major number
This page took 0.06284 seconds and 5 git commands to generate.