]>
sourceware.org Git - dm.git/log
Alasdair Kergon [Mon, 18 Mar 2002 18:40:35 +0000 (18:40 +0000)]
Fix uuid kmalloc.
Joe Thornber [Mon, 18 Mar 2002 17:48:44 +0000 (17:48 +0000)]
o 1 byte too few was being allocated for the uuid. It took me all
afternoon with kdb and a lot of debug code to find what was trashing
the slabs !
/me throws a small planet at agk
Andres Salomon [Fri, 15 Mar 2002 06:13:59 +0000 (06:13 +0000)]
fix improper if-elif
Andres Salomon [Fri, 15 Mar 2002 06:08:16 +0000 (06:08 +0000)]
Add 2.4.18 patch
Andres Salomon [Fri, 15 Mar 2002 06:06:01 +0000 (06:06 +0000)]
updated
Joe Thornber [Thu, 14 Mar 2002 17:48:57 +0000 (17:48 +0000)]
o Duplicate code in snapshot_map and new_exception
Alasdair Kergon [Thu, 14 Mar 2002 16:58:53 +0000 (16:58 +0000)]
Update pre-built patches.
Alasdair Kergon [Thu, 14 Mar 2002 16:56:02 +0000 (16:56 +0000)]
distclean also to remove libdm-common.h
Alasdair Kergon [Thu, 14 Mar 2002 16:24:55 +0000 (16:24 +0000)]
Add dm-exception-store.c
Joe Thornber [Thu, 14 Mar 2002 16:19:55 +0000 (16:19 +0000)]
o Add dm-snapshot.h and dm-exception-store.c to make links
Joe Thornber [Thu, 14 Mar 2002 16:02:50 +0000 (16:02 +0000)]
o split snapshot metadata handling into it's own file.
o enable the inflight exceptions to use the same hash code as complete
exceptions.
o factor common code from dm_do_snapshot, snapshot_map into new_exception.
o remove origin when there are no more snapshots against it.
o reformat to fit the coding style used in the rest of dm.
Patrick Caulfield [Thu, 14 Mar 2002 13:56:07 +0000 (13:56 +0000)]
Keep a track of BHs submitted for sectors currently under the auspices of kcopyd
and resubmit them (with a mirror) to the device when it has finished.
Alasdair Kergon [Thu, 14 Mar 2002 13:39:32 +0000 (13:39 +0000)]
Suppress verbose/debug messages from libdevmapper.
Alasdair Kergon [Wed, 13 Mar 2002 23:19:20 +0000 (23:19 +0000)]
A missing free() found by Valgrind. ( http://developer.kde.org/~sewardj/ )
Alasdair Kergon [Wed, 13 Mar 2002 17:30:28 +0000 (17:30 +0000)]
Remove a noop.
Alasdair Kergon [Wed, 13 Mar 2002 16:19:16 +0000 (16:19 +0000)]
dmsetup display uuid
Patrick Caulfield [Wed, 13 Mar 2002 15:43:06 +0000 (15:43 +0000)]
Put the fixes from the sync kcopyd into this one.
Patrick Caulfield [Wed, 13 Mar 2002 15:41:44 +0000 (15:41 +0000)]
Wake up processes wanting a work_item when we've freed a slab item too as that
might be enough to kick it into life.
Patrick Caulfield [Wed, 13 Mar 2002 14:52:00 +0000 (14:52 +0000)]
Move rw_sem into the snapshot_c struct
Patrick Caulfield [Tue, 12 Mar 2002 15:27:51 +0000 (15:27 +0000)]
Fix _align so it works on 64-bit machines.
Patrick Caulfield [Tue, 12 Mar 2002 11:41:30 +0000 (11:41 +0000)]
Fix typo that could have caused an infinte loop in low-memory situations.
Mark free-list entries as such.
Patrick Caulfield [Tue, 12 Mar 2002 10:37:31 +0000 (10:37 +0000)]
Free work_item structures when we've finished with them.
Patrick Caulfield [Tue, 12 Mar 2002 10:32:07 +0000 (10:32 +0000)]
Use slab cache for memory allocation. mucho speed improvements.
Alasdair Kergon [Mon, 11 Mar 2002 22:44:35 +0000 (22:44 +0000)]
Let dmsetup store the uuid on device creation.
Patrick Caulfield [Mon, 11 Mar 2002 16:14:31 +0000 (16:14 +0000)]
Async version of kcopyd. Only checked in so I don't lose it.
Patrick Caulfield [Mon, 11 Mar 2002 16:06:48 +0000 (16:06 +0000)]
Don't Oops when doing I/O to an origin whose last snapshot has been removed.
Patrick Caulfield [Fri, 8 Mar 2002 14:11:57 +0000 (14:11 +0000)]
Made hash functions inlines rather than macros.
Patrick Caulfield [Fri, 8 Mar 2002 13:07:13 +0000 (13:07 +0000)]
Format comments so that they meet with Joe's approval <fx bows, scrapes>.
Actually there's a sarky comment I could make here but I will refrain.
Alasdair Kergon [Fri, 8 Mar 2002 12:57:47 +0000 (12:57 +0000)]
update comment
Alasdair Kergon [Fri, 8 Mar 2002 12:48:04 +0000 (12:48 +0000)]
Allow suspended devices to be removed provided nothing has them open.
Patrick Caulfield [Fri, 8 Mar 2002 12:42:54 +0000 (12:42 +0000)]
add an "inflight" exception hash table to hold references to exceptions that are
currently being handled by kcopyd.
This allows us to remove a lot of members from struct exception and
significantly reduce the size of the exception table.
Patrick Caulfield [Fri, 8 Mar 2002 09:08:26 +0000 (09:08 +0000)]
Joe's tidy-up patch.
This changes the number of args to dm-origin remember.
Alasdair Kergon [Thu, 7 Mar 2002 20:56:06 +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.
Alasdair Kergon [Thu, 7 Mar 2002 17:26:36 +0000 (17:26 +0000)]
o Store a string (uuid) with each mapped device in kernel so userspace can
match up devices later (ejt)
o Use _IOC_NR so struct dm_ioctl can be extended without breaking
ioctl interface backward compatibility
Alasdair Kergon [Wed, 6 Mar 2002 19:42:22 +0000 (19:42 +0000)]
Kernel functionality that returns device dependencies (ejt).
Joe Thornber [Wed, 6 Mar 2002 14:47:13 +0000 (14:47 +0000)]
o Rename dmsetup dependencies -> dmsetup deps
Joe Thornber [Wed, 6 Mar 2002 14:38:23 +0000 (14:38 +0000)]
o Add support for getting dependencies for a device.
o dmsetup dependencies <dev>
Andres Salomon [Wed, 6 Mar 2002 05:39:37 +0000 (05:39 +0000)]
remove debian native-ness
Alasdair Kergon [Tue, 5 Mar 2002 12:35:12 +0000 (12:35 +0000)]
2.4.18 patches
Alasdair Kergon [Tue, 5 Mar 2002 12:31:56 +0000 (12:31 +0000)]
2.4.18 patches
Alasdair Kergon [Mon, 4 Mar 2002 17:24:21 +0000 (17:24 +0000)]
o b_bdev_private patch for ext3
o makefiles include snapshot code etc.
Andres Salomon [Mon, 4 Mar 2002 09:54:08 +0000 (09:54 +0000)]
typo
Andres Salomon [Mon, 4 Mar 2002 09:42:55 +0000 (09:42 +0000)]
*** empty log message ***
Andres Salomon [Mon, 4 Mar 2002 09:42:23 +0000 (09:42 +0000)]
renaming libdevmapper to libdevmapper0
Andres Salomon [Mon, 4 Mar 2002 09:40:18 +0000 (09:40 +0000)]
um, stuff that i don't remember
Andres Salomon [Mon, 4 Mar 2002 09:39:57 +0000 (09:39 +0000)]
split up the old docs file
Andres Salomon [Mon, 4 Mar 2002 09:33:56 +0000 (09:33 +0000)]
moved to per-package docs
Patrick Caulfield [Fri, 1 Mar 2002 09:23:58 +0000 (09:23 +0000)]
No point in waking up freelist waiters if we've not put anything new in it.
Patrick Caulfield [Thu, 28 Feb 2002 11:13:21 +0000 (11:13 +0000)]
Remove MODULE_* macros
Patrick Caulfield [Thu, 28 Feb 2002 11:01:49 +0000 (11:01 +0000)]
Get rid of task startup race.
Patrick Caulfield [Wed, 27 Feb 2002 11:02:42 +0000 (11:02 +0000)]
Make read_blocks & write_blocks into the same function as they are now almost
identical.
Don't write a FULL header to a non-persistent snapshot.
Alasdair Kergon [Tue, 26 Feb 2002 18:30:02 +0000 (18:30 +0000)]
Running out of filehandles? Close /dev/device-mapper/control then.
Alasdair Kergon [Thu, 21 Feb 2002 13:11:06 +0000 (13:11 +0000)]
Indent.
Alasdair Kergon [Thu, 21 Feb 2002 12:48:25 +0000 (12:48 +0000)]
Pass through indent.
Andres Salomon [Wed, 20 Feb 2002 08:45:07 +0000 (08:45 +0000)]
Annoying dpkg-buildpackage warning about source not having a section
Andres Salomon [Wed, 20 Feb 2002 07:17:35 +0000 (07:17 +0000)]
First try at packaging this beast for debian.. Comments most welcome.
Passes lintian checks; have not tried yet w/ lvm2, that'll be next.
Patrick Caulfield [Tue, 19 Feb 2002 16:58:51 +0000 (16:58 +0000)]
Make "extent size" only mandatory for persistent snapshots.
Patrick Caulfield [Wed, 13 Feb 2002 13:33:46 +0000 (13:33 +0000)]
Fix some comments
Patrick Caulfield [Wed, 13 Feb 2002 11:39:31 +0000 (11:39 +0000)]
call init/exit functions for snapshot/origin/mirror and kcopyd in dm.c
Patrick Caulfield [Fri, 8 Feb 2002 15:41:48 +0000 (15:41 +0000)]
Fix OB1 error in arg parsing.
Patrick Caulfield [Fri, 8 Feb 2002 14:34:12 +0000 (14:34 +0000)]
Get rid of \n at the end of DMERR & friends because they are already provided.
Patrick Caulfield [Fri, 8 Feb 2002 13:50:08 +0000 (13:50 +0000)]
- Paranoid checks on COW metadata reading.
- Set ondisk flag when reading metadata from disk!
- More efficient hash function (/ is now >>)
- Fix some duff bh defers
Patrick Caulfield [Thu, 7 Feb 2002 15:20:59 +0000 (15:20 +0000)]
Add a priority parameter to kcopyd so that snapshots can butt-in to mirror
operations.
Also keep the number of free-list allocated entries a fixed size and allocate
anuthing else from a slab.
Patrick Caulfield [Wed, 6 Feb 2002 08:38:20 +0000 (08:38 +0000)]
Fix deadlock when snapshotting a snapshot and remove redundant chunk iobuf.
Patrick Caulfield [Tue, 5 Feb 2002 14:36:27 +0000 (14:36 +0000)]
This is the first version of the snapshot driver that uses kcopyd to do its COW
IO. Treat it gently and make a note of the previous version number in case it
all goes horribly wrong :)
Oh, and don't try taking snapshots of snapshots, they currently
deadlock....sometimes.
Patrick Caulfield [Tue, 5 Feb 2002 11:35:51 +0000 (11:35 +0000)]
Use a freelist to keep work_item structures in.
Add a PROGRESS callback
Alasdair Kergon [Mon, 4 Feb 2002 13:20:21 +0000 (13:20 +0000)]
Update patches.
Patrick Caulfield [Mon, 4 Feb 2002 11:45:26 +0000 (11:45 +0000)]
return r
Patrick Caulfield [Mon, 4 Feb 2002 09:15:14 +0000 (09:15 +0000)]
Don't expect the COW volume to be any particular size.
Andres Salomon [Sun, 3 Feb 2002 11:36:37 +0000 (11:36 +0000)]
dm_interface_{init,exit} prototypes get marked as __{init,exit} as well
Andres Salomon [Sun, 3 Feb 2002 11:21:48 +0000 (11:21 +0000)]
__init/__exit for interface_{init,exit}. fs interface has 'em, kind of odd that ioctl doesn't.
Alasdair Kergon [Fri, 1 Feb 2002 17:39:19 +0000 (17:39 +0000)]
Failure signalled by -1 not 0; MAX_DEVICES 256 (was 64); change a '>' to '>='.
Alasdair Kergon [Thu, 31 Jan 2002 21:30:24 +0000 (21:30 +0000)]
o Cleaner per-device locks replace the single global lock. (Joe)
o Error target request loop fix.
Patrick Caulfield [Thu, 31 Jan 2002 15:19:49 +0000 (15:19 +0000)]
First stab at the mirror target.
Patrick Caulfield [Thu, 31 Jan 2002 14:41:04 +0000 (14:41 +0000)]
Add prototypes for two rather dodgy functions:
dm_notify(this is wrong, surely)
dm_blockcopy(interface to kcopyd)
and a stub for the former.
Patrick Caulfield [Thu, 31 Jan 2002 14:18:24 +0000 (14:18 +0000)]
Changed the last of the prinks to DMERRs
Patrick Caulfield [Thu, 31 Jan 2002 10:52:34 +0000 (10:52 +0000)]
Fix locking.
Alasdair Kergon [Wed, 30 Jan 2002 17:48:14 +0000 (17:48 +0000)]
Beta1
Alasdair Kergon [Wed, 30 Jan 2002 17:09:50 +0000 (17:09 +0000)]
Don't assume read-only is not set when device is created.
Patrick Caulfield [Wed, 30 Jan 2002 11:44:43 +0000 (11:44 +0000)]
Only call callback if it's non-NULL.
wait for thread to exit when kcopyd_exit() is called.
Patrick Caulfield [Fri, 25 Jan 2002 14:47:57 +0000 (14:47 +0000)]
Cheap & cheerful kcopy daemon
Patrick Caulfield [Thu, 24 Jan 2002 13:26:28 +0000 (13:26 +0000)]
Get rid of the large vmalloc in read_metadata and use the pages in the kiobuf
directly.
Alasdair Kergon [Fri, 18 Jan 2002 19:37:25 +0000 (19:37 +0000)]
Use same log levels as LVM2.
Patrick Caulfield [Fri, 18 Jan 2002 08:54:29 +0000 (08:54 +0000)]
Get rid of more divisions where they weren't really needed.
Alasdair Kergon [Thu, 17 Jan 2002 18:19:40 +0000 (18:19 +0000)]
beta1-pre1 - Is this ready for release?
Alasdair Kergon [Thu, 17 Jan 2002 14:13:24 +0000 (14:13 +0000)]
Add function that returns the library version.
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.
Alasdair Kergon [Thu, 17 Jan 2002 13:19:52 +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.
Patrick Caulfield [Thu, 17 Jan 2002 12:02:23 +0000 (12:02 +0000)]
Keep Joe happy.
Patrick Caulfield [Wed, 16 Jan 2002 09:56:50 +0000 (09:56 +0000)]
Miscellaneous tidying of code and comments. Removed some double-increments of
next_free_sector that crept in and (finally) make write_header use it's own
iobuf so that multiple snapshots don't get corrupted when one gets full.
Alasdair Kergon [Tue, 15 Jan 2002 19:59:18 +0000 (19:59 +0000)]
Remove incorrect __exits.
Alasdair Kergon [Tue, 15 Jan 2002 16:19:07 +0000 (16:19 +0000)]
Updated patches.
Patrick Caulfield [Tue, 15 Jan 2002 16:00:22 +0000 (16:00 +0000)]
Reduce memory requirements further by using the iobuf pages directly rather than
copying to them (less memory copying too of course).
Fix lots more bugs.
Alasdair Kergon [Tue, 15 Jan 2002 15:21:54 +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
Alasdair Kergon [Mon, 14 Jan 2002 23:07:31 +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
Alasdair Kergon [Mon, 14 Jan 2002 18:15:27 +0000 (18:15 +0000)]
dm_get ordering fix (joe).
Once the LVM2 beta is released, we'll rework this locking/reference counting.
Alasdair Kergon [Mon, 14 Jan 2002 14:38:35 +0000 (14:38 +0000)]
Update patches.
Alasdair Kergon [Mon, 14 Jan 2002 13:51:32 +0000 (13:51 +0000)]
Additional bounds-checking.
Patrick Caulfield [Fri, 11 Jan 2002 14:19:04 +0000 (14:19 +0000)]
Remove some redundant code.
Move prototype for dm_do_snapshot into dm.h
Alasdair Kergon [Fri, 11 Jan 2002 12:12:44 +0000 (12:12 +0000)]
o Add rename support to dmsetup.
o Add support to use specified minor number to library and dmsetup.
This page took 0.056087 seconds and 5 git commands to generate.