initial release of dm thin provisioning target
Subsystems (3)
cover initial release of dm thin provisioning target
Alasdair,
Please consider this initial release of the new Device Mapper thin provisioning target (with scalable snapshot support) for inclusion in linux-next (with the goal being upstream inclusion in Linux 3.1).
There is significant interest in this thin provisioning target. It is EXPERIMENTAL but we are working aggressively to improve the code. All of our tests pass (test-suite listed below). We would like to get it upstream as soon as reasonable to encourage early adopters that might help us with further testing and features.
It is understood that there may be various changes required but until it gets upstream it would be very helpful if you could refrain from editing these patches in place. Layering on additional patches is very much preferred (so that we can easily fold them back into the git tree, listed below, while pending upstream inclusion).
That said, I've layered these patches ontop of your editing tree:
ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/editing/patches/series.html
All patches are available here too:
http://people.redhat.com/msnitzer/patches/upstream/dm-thinp/series.html
The git tree that we've been using for development can be found here (though it is missing some checkpatch and misc. fixes I made today, Joe will likely push those on Monday):git://github.com/jthornber/linux-2.6.git thin-dev
The incremental patch with my checkpatch and misc fixes is here:
http://people.redhat.com/msnitzer/patches/upstream/dm-thinp/dm-thinp-checkpath-misc.patch
The thinp test-suite (requires ruby 1.9) is available here:git://github.com/jthornber/thinp-test-suite.git
All comments/review would be appreciated.
Joe Thornber (3):
dm: add dm_bdev
dm persistent data: a library for storing metadata in DM targets dm thin: thin provisioning target
Documentation/device-mapper/persistent-data.txt | 90 + Documentation/device-mapper/thin-provisioning.txt | 248 +++ drivers/md/Kconfig | 8 + drivers/md/Makefile | 3 + drivers/md/dm-thin-metadata.c | 1281 ++++++++++++ drivers/md/dm-thin-metadata.h | 164 ++ drivers/md/dm-thin.c | 2204 ++++++++++++++++++++ drivers/md/dm.c | 11 +- drivers/md/persistent-data/Kconfig | 9 + drivers/md/persistent-data/Makefile | 10 + drivers/md/persistent-data/dm-block-manager.c | 931 +++++++++ drivers/md/persistent-data/dm-block-manager.h | 110 + drivers/md/persistent-data/dm-btree-internal.h | 141 ++ drivers/md/persistent-data/dm-btree-remove.c | 540 +++++ drivers/md/persistent-data/dm-btree-spine.c | 192 ++ drivers/md/persistent-data/dm-btree.c | 871 ++++++++ drivers/md/persistent-data/dm-btree.h | 146 ++ drivers/md/persistent-data/dm-pd-module.c | 18 + drivers/md/persistent-data/dm-space-map-common.h | 99 + drivers/md/persistent-data/dm-space-map-disk.c | 624 ++++++ drivers/md/persistent-data/dm-space-map-disk.h | 21 + drivers/md/persistent-data/dm-space-map-metadata.c | 878 ++++++++ drivers/md/persistent-data/dm-space-map-metadata.h | 29 + drivers/md/persistent-data/dm-space-map.h | 116 + .../md/persistent-data/dm-transaction-manager.c | 442 ++++ .../md/persistent-data/dm-transaction-manager.h | 139 ++ include/linux/device-mapper.h | 1 + 27 files changed, 9324 insertions(+), 2 deletions(-) create mode 100644 Documentation/device-mapper/persistent-data.txt create mode 100644 Documentation/device-mapper/thin-provisioning.txt create mode 100644 drivers/md/dm-thin-metadata.c create mode 100644 drivers/md/dm-thin-metadata.h create mode 100644 drivers/md/dm-thin.c create mode 100644 drivers/md/persistent-data/Kconfig create mode 100644 drivers/md/persistent-data/Makefile create mode 100644 drivers/md/persistent-data/dm-block-manager.c create mode 100644 drivers/md/persistent-data/dm-block-manager.h create mode 100644 drivers/md/persistent-data/dm-btree-internal.h create mode 100644 drivers/md/persistent-data/dm-btree-remove.c create mode 100644 drivers/md/persistent-data/dm-btree-spine.c create mode 100644 drivers/md/persistent-data/dm-btree.c create mode 100644 drivers/md/persistent-data/dm-btree.h create mode 100644 drivers/md/persistent-data/dm-pd-module.c create mode 100644 drivers/md/persistent-data/dm-space-map-common.h create mode 100644 drivers/md/persistent-data/dm-space-map-disk.c create mode 100644 drivers/md/persistent-data/dm-space-map-disk.h create mode 100644 drivers/md/persistent-data/dm-space-map-metadata.c create mode 100644 drivers/md/persistent-data/dm-space-map-metadata.h create mode 100644 drivers/md/persistent-data/dm-space-map.h create mode 100644 drivers/md/persistent-data/dm-transaction-manager.c create mode 100644 drivers/md/persistent-data/dm-transaction-manager.h
PATCH 1/3 dm: add dm_bdev
From: Joe Thornber <[email protected]>
Allow targets to access to the block_device associated with a DM mapped_device. Export dm_disk() and dm_bdev() -- both are required by the dm-thinp target.
--- drivers/md/dm.c | 11 +++++++++-- include/linux/device-mapper.h | 1 + 2 files changed, 10 insertions(+), 2 deletions(-)
drivers/md/dm.c +9 -2
@@ -2632,13 +2632,20 @@ void dm_uevent_add(struct mapped_device *md, struct list_head *elist) }/* -* The gendisk is only valid as long as you have a reference -* count on 'md'. +* The gendisk or block_device are only valid as long as you +* have a reference count on 'md'. */ struct gendisk *dm_disk (struct mapped_device *md) {return md->disk; } +EXPORT_SYMBOL_GPL (dm_disk); + +struct block_device *dm_bdev (struct mapped_device *md) +{ +return md->bdev; +} +EXPORT_SYMBOL_GPL (dm_bdev);struct kobject *dm_kobject (struct mapped_device *md) {
include/linux/device-mapper.h +1 -0
@@ -295,6 +295,7 @@ void dm_uevent_add(struct mapped_device *md, struct list_head *elist);const char *dm_device_name (struct mapped_device *md);int dm_copy_name_and_uuid (struct mapped_device *md,char *name,char *uuid);struct gendisk *dm_disk (struct mapped_device *md); +struct block_device *dm_bdev (struct mapped_device *md);int dm_suspended (struct dm_target *ti);int dm_noflush_suspending (struct dm_target *ti);union map_info *dm_get_mapinfo (struct bio *bio);
Signature · 1 line
1.7.1
PATCH 2/3 dm persistent data: a library for storing metadata in DM targets
In reply to Mike SnitzerFrom: Joe Thornber <[email protected]>
The more sophisticated device mapper targets require complex metadata that is managed in kernel. In late 2010 we were seeing that various different targets were rolling their own data strutures, for example:
- Mikulas Patocka's multisnap implementation
- Heinz Mauelshagen's thin provisioning target
- Another btree based caching target posted to dm-devel
- Another multi-snapshot target based on a design of Daniel Phillips
Maintaining these data structures takes a lot of work, so if possible we'd like to reduce the number.
The persistent-data library is an attempt to provide a re-usable framework for people who want to store metadata in device mapper targets. It's currently used by the thin-provisioning target and an upcoming hierarchical storage target.
Please see: Documentation/device-mapper/persistent-data.txt
--- Documentation/device-mapper/persistent-data.txt | 90 ++ drivers/md/persistent-data/Kconfig | 9 + drivers/md/persistent-data/Makefile | 10 + drivers/md/persistent-data/dm-block-manager.c | 931 ++++++++++++++++++++ drivers/md/persistent-data/dm-block-manager.h | 110 +++ drivers/md/persistent-data/dm-btree-internal.h | 141 +++ drivers/md/persistent-data/dm-btree-remove.c | 540 ++++++++++++ drivers/md/persistent-data/dm-btree-spine.c | 192 ++++ drivers/md/persistent-data/dm-btree.c | 871 ++++++++++++++++++ drivers/md/persistent-data/dm-btree.h | 146 +++ drivers/md/persistent-data/dm-pd-module.c | 18 + drivers/md/persistent-data/dm-space-map-common.h | 99 +++ drivers/md/persistent-data/dm-space-map-disk.c | 624 +++++++++++++ drivers/md/persistent-data/dm-space-map-disk.h | 21 + drivers/md/persistent-data/dm-space-map-metadata.c | 878 ++++++++++++++++++ drivers/md/persistent-data/dm-space-map-metadata.h | 29 + drivers/md/persistent-data/dm-space-map.h | 116 +++ .../md/persistent-data/dm-transaction-manager.c | 442 ++++++++++ .../md/persistent-data/dm-transaction-manager.h | 139 +++ 19 files changed, 5406 insertions(+), 0 deletions(-) create mode 100644 Documentation/device-mapper/persistent-data.txt create mode 100644 drivers/md/persistent-data/Kconfig create mode 100644 drivers/md/persistent-data/Makefile create mode 100644 drivers/md/persistent-data/dm-block-manager.c create mode 100644 drivers/md/persistent-data/dm-block-manager.h create mode 100644 drivers/md/persistent-data/dm-btree-internal.h create mode 100644 drivers/md/persistent-data/dm-btree-remove.c create mode 100644 drivers/md/persistent-data/dm-btree-spine.c create mode 100644 drivers/md/persistent-data/dm-btree.c create mode 100644 drivers/md/persistent-data/dm-btree.h create mode 100644 drivers/md/persistent-data/dm-pd-module.c create mode 100644 drivers/md/persistent-data/dm-space-map-common.h create mode 100644 drivers/md/persistent-data/dm-space-map-disk.c create mode 100644 drivers/md/persistent-data/dm-space-map-disk.h create mode 100644 drivers/md/persistent-data/dm-space-map-metadata.c create mode 100644 drivers/md/persistent-data/dm-space-map-metadata.h create mode 100644 drivers/md/persistent-data/dm-space-map.h create mode 100644 drivers/md/persistent-data/dm-transaction-manager.c create mode 100644 drivers/md/persistent-data/dm-transaction-manager.h
Documentation/device-mapper/persistent-data.txt new file +90 -0
@@ -0,0 +1,90 @@ +Introduction +============ + +The more sophisticated device mapper targets require complex metadata +that is managed in kernel. In late 2010 we were seeing that various +different targets were rolling their own data strutures, for example: + +- Mikulas Patocka's multisnap implementation +- Heinz Mauelshagen's thin provisioning target +- Another btree based caching target posted to dm-devel +- Another multi-snapshot target based on a design of Daniel Phillips + +Maintaining these data structures takes a lot of work, so if possible +we'd like to reduce the number. + +The persistent-data library is an attempt to provide a re-usable +framework for people who want to store metadata in device mapper +targets. It's currently used by the thin-provisioning target and an +upcoming hierarchical storage target. + + +Overview +======== + +The main documentation is in the header files, which can all be found +under drivers/md/persistent-data. But here is an overview: + +The block manager +----------------- + +dm-block-manager.[hc] + +This provides access to the data on disk in fixed sized blocks. There +is a read/write locking interface to prevent concurrent accesses, and +keep data that is being used in the cache. + +Clients of persistent-data are unlikely to use this directly. + +The transaction manager +----------------------- + +dm-transaction-manager.[hc] + +This restricts access to blocks and enforces copy-on-write semantics. +The only way you can get hold of a writable block through the +transaction manager is by shadowing an existing block (ie. doing +copy-on-write), or allocating a fresh one. Shadowing is elided within +the same transaction, so performance is reasonable. The commit method +ensures that all data is flushed, before your superblock, and then the +superblock written. On power failure your metadata will be as it was +when last committed. + +Clients will need to be familiar with tm to use persistent-data. + +The Space Maps +-------------- + +dm-space-map.h +dm-space-map-metadata.[hc] +dm-space-map-disk.[hc] + +On disk data structures that keep track of reference counts of blocks. +Also acts as the allocator of new blocks. Currently two +implementations, a simpler one for managing blocks on a different +device (eg. thinly provisioned data blocks), and another for managing +the metadata space. The latter is complicated by the need to store +it's own data within the space it's managing. + +Clients do not need to use space maps directly. + +The data structures +------------------- + +dm-btree.[hc] +dm-btree-remove.c +dm-btree-spine.c +dm-btree-internal.h + +Currently there is only one data structure. A hierarchical btree. +There are plans to add more, for example something with an array like +interface would see a lot of use. + +The btree is 'hierarchical' in that you can define it to be composed +of nested btrees, and take multiple keys. For example the +thin-provisioning target uses a btree with two levels of nesting, the +first mapping a device id to a mapping tree, which in turn maps a +virtual block to a physical block. + +Values stored in the btrees can have arbitrary size. Keys are always +64bits (though nesting allows you to use multiple keys).
drivers/md/persistent-data/Kconfig new file +9 -0
@@ -0,0 +1,9 @@ +config DM_PERSISTENT_DATA + tristate "Persistent data library" + depends on BLK_DEV_DM && EXPERIMENTAL + select LIBCRC32C + ---help--- + Library of code for metadata support for dm targets. The + term persistent isn't referring to the fact that the data is + written to disk (which of course it is). But that these data + structures are immutable.
drivers/md/persistent-data/Makefile new file +10 -0
@@ -0,0 +1,10 @@ +obj-$(CONFIG_DM_PERSISTENT_DATA) += dm-persistent-data.o +dm-persistent-data-objs := \ + dm-block-manager.o \ + dm-pd-module.o \ + dm-space-map-disk.o \ + dm-space-map-metadata.o \ + dm-transaction-manager.o \ + dm-btree.o \ + dm-btree-remove.o \ + dm-btree-spine.o
drivers/md/persistent-data/dm-block-manager.c new file +931 -0
931 lines not on this page · raw message
drivers/md/persistent-data/dm-block-manager.h new file +110 -0
110 lines not on this page · raw message
drivers/md/persistent-data/dm-btree-internal.h new file +141 -0
141 lines not on this page · raw message
drivers/md/persistent-data/dm-btree-remove.c new file +540 -0
540 lines not on this page · raw message
drivers/md/persistent-data/dm-btree-spine.c new file +192 -0
192 lines not on this page · raw message
drivers/md/persistent-data/dm-btree.c new file +871 -0
871 lines not on this page · raw message
drivers/md/persistent-data/dm-btree.h new file +146 -0
106 lines not on this page · raw message
drivers/md/persistent-data/dm-pd-module.c new file +18 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map-common.h new file +99 -0
99 lines not on this page · raw message
drivers/md/persistent-data/dm-space-map-disk.c new file +624 -0
624 lines not on this page · raw message
drivers/md/persistent-data/dm-space-map-disk.h new file +21 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map-metadata.c new file +878 -0
878 lines not on this page · raw message
drivers/md/persistent-data/dm-space-map-metadata.h new file +29 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map.h new file +116 -0
116 lines not on this page · raw message
drivers/md/persistent-data/dm-transaction-manager.c new file +442 -0
442 lines not on this page · raw message
drivers/md/persistent-data/dm-transaction-manager.h new file +139 -0
139 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.
PATCH 3/3 dm thin: thin provisioning target
In reply to Mike SnitzerFrom: Joe Thornber <[email protected]>
Initial EXPERIMENTAL implementation of device-mapper thin provisioning with snapshot support. The 'thin' target is used to create instances of the virtual devices that are hosted in the 'thin-pool' target. The thin-pool target provides data sharing among devices. This sharing is made possible via the new persistent-data library.
The main highlight of this implementation, compared to the previous implementation of snapshots, is it allows many virtual devices to be stored on the same data volume. Simplifying administration and allowing sharing of data between volumes (thus reducing disk usage).
Another big feature is support for arbitrary depth of recursive snapshots (snapshots of snapshots of snapshots ...). The previous implementation of snapshots did this by chaining together lookup tables, and so performance was O(depth). This new implementation uses a single data structure so we won't get this degradation with depth (fragmentation may be an issue however in some scenarios).
Metadata is stored on a separate device from data, this gives the administrator a bit more freedom. For instance:
- Improve metadata resilience by storing metadata on a mirrored volume but data on a non-mirrored one.
- Improve performance by storing the metadata on an SSD.
Please see: Documentation/device-mapper/thin-provisioning.txt
--- Documentation/device-mapper/thin-provisioning.txt | 248 +++ drivers/md/Kconfig | 8 + drivers/md/Makefile | 3 + drivers/md/dm-thin-metadata.c | 1281 ++++++++++++ drivers/md/dm-thin-metadata.h | 164 ++ drivers/md/dm-thin.c | 2204 +++++++++++++++++++++ 6 files changed, 3908 insertions(+), 0 deletions(-) create mode 100644 Documentation/device-mapper/thin-provisioning.txt create mode 100644 drivers/md/dm-thin-metadata.c create mode 100644 drivers/md/dm-thin-metadata.h create mode 100644 drivers/md/dm-thin.c
Documentation/device-mapper/thin-provisioning.txt new file +248 -0
@@ -0,0 +1,248 @@ +Introduction +============ + +This document descibes a collection of device-mapper targets that +between them implement thin provisioning and snapshots. + +The main highlight of this implementation, compared to the previous +implementation of snapshots, is it allows many virtual devices to be +stored on the same data volume. Simplifying administration and +allowing sharing of data between volumes (thus reducing disk usage). + +Another big feature is support for arbitrary depth of recursive +snapshots (snapshots of snapshots of snapshots ...). The previous +implementation of snapshots did this by chaining together lookup +tables, and so performance was O(depth). This new implementation uses +a single data structure so we won't get this degradation with depth +(fragmentation may be an issue however in some scenarios). + +Metadata is stored on a separate device from data, this gives the +administrator a bit more freedom. For instance: + +- Improve metadata resilience by storing metadata on a mirrored volume + but data on a non-mirrored one. + +- Improve performance by storing the metadata on an SSD. + + +Status +====== + +These targets are very much in the EXPERIMENTAL state. Do not use in +production. + +_Do_ experiment with it and give us feedback. Different use cases +will have different performance characteristics (for example due to +fragmentation of the data volume). If you find this software is not +performing as expected please mail [email protected] with details and +we'll try our best to improve things for you. + + +Cookbook +======== + +This section describes some quick recipes for using thin provisioning +using the dmsetup program to control the device-mapper driver +directly. End users are advised to use a higher level volume manager +such as LVM2. + + +Pool device +----------- + +The pool device ties together the metadata volume and the data volume. +It linearly maps to the data volume, and updates the metadata via two +mechanisms: + +- Function calls from the thin targets + +- device-mapper 'messages' from userland which control creation of new + virtual devices among other things. + + +Setting up a fresh pool device +------------------------------ + +Setting up a pool device requires a _valid_ metadata device, and a +data device. If you do not have an existing metadata device you can +make one by zeroing the first 4k to indicate empty metadata. + + dd if=/dev/zero of=$metadata_dev bs=4096 count=1 + +Reloading a pool table +---------------------- + +You may reload a pool's table, indeed this is how the pool is resized +if it runs out of space. Its advisable that you reload with a pool +target that points to the same metadata area. + + +Using an existing pool device +----------------------------- + + dmsetup create pool --table "0 20971520 thin-pool $metadata_dev $data_dev $data_block_size $low_water_mark" + +The $data_block_size gives the smallest unit of disk space that can be +allocated at a time. This is expressed in 512 byte sectors. People +primarily interested in thin provisioning may want to set this larger +(e.g., 1024). People doing lots of snapshotting may want it smaller +(e.g., 128). $data_block_size must be the same for the lifetime of +the metadata device. + +The $low_water_mark is expressed in 512 byte sectors, if free space on +the data device drops below this level then a dm event will be sent to +userland which should extend the pool device. + + +Thin provisioning +----------------- + +i) Creating a new thinly provisioned volume + + To create a new thin provision volume you must send a message to an + active pool device. + + dmsetup message /dev/mapper/pool 0 "new-thin 0" + + Here '0' is an identifier for the volume (32bit range). It's up to + the caller to allocate and manage these identifiers. If there's a + collision the message will fail. + +ii) Using a thinp volume + + Thin provisioned volumes are instanced using the 'thin' target. + + dmsetup create thin --table "0 2097152 thin /dev/mapper/pool 0" + + The last parameter is the 32bit identifier for the thinp device. + + +Internal snapshots +------------------ + +i) Creating an internal snapshot + + Snapshots are created with another message to the pool. + + You _must_ suspend the origin device before creating the snapshot. + If the origin hasn't been instanced via the 'thin' target then you + may proceed without doing anything. + + dmsetup suspend /dev/mapper/thin + dmsetup message /dev/mapper/pool 0 "new-snap 1 0" + dmsetup resume /dev/mapper/thin + + Here '1' is an identifier for the volume (32bit range). '0' is the + identifier for the origin device. + +ii) Using an internal snapshot + + Once created, the user doesn't have to worry about any connection + between the origin and the snapshot. Indeed the snapshot is no + different from any other thinly provisioned device, and can be + snapshotted itself via the same method. It's perfectly legal to + have only one of them active, and there's no ordering requirement on + activating/removing them both. + + Activate exactly the same way as any other thin provisioned volume. + + dmsetup create snap --table "0 2097152 thin /dev/mapper/pool 1" + +Teardown +-------- + +Always teardown the pool last. + + dmsetup remove thin + dmsetup remove snap + dmsetup remove pool + + +Reference +========= + +'thin-pool' target +------------------ + +i) Constructor + + thin-pool <metadata dev> + <data dev> + <data block size in sectors> + <low water mark (sectors)> + [number of feature args> [<arg>]*] + + optional feature args: + - 'skip_block_zeroing': skips the zeroing of newly provisioned blocks + +ii) Status + + <transaction id> <data free space in sectors> <metadata free space in sectors> <held metadata root> + + where, + + - transaction id: A 64bit number used by userland to help + synchronise with metadata from volume managers. + + - held metadata root: The location, in sectors, of the metadata + root that has been 'held' for userland read access. '-' + indicates there is no held root. + + - data free space in sectors: If this drops below the pool's low + water mark a dm event will be sent to userland. This event is + edge triggered, it will occur only once, so volume manager + writers should register for the event, then double check the + status of the target. + +iii) Messages + + new-thin <dev id> + + Create a new thin provisioned device. <dev id> is an arbitrary + unique 32 bit number, chosen by the caller. + + new-snap <dev id> <origin id> + + Create a new snapshot of another thin device. <origin id> is the + dev id of the thin dev that you wish to snap. + + del <dev id> + + Deletes a thin device. Irreversible. + + trim <dev id> <new size in sectors> + + Delete mappings from the back of a thin device. Irreversible. You + might want to do this if you're shrinking the size of your thin + device. + + trans-id <current id> <new id> + + Userland volume managers, such as LVM, need a way to synchonise + their external metadata with the internal metadata of the pool + target. The minimal facilities that pool provides is offering to + store a 64bit transaction id (which is available on the pool + targets status line). To avoid races you must provide what you + think the current transaction id is when you change it (compare and + swap). + +'thin' target +------------- + + thin <pool dev> <dev id> + + pool dev: the path to the pool (eg, /dev/mapper/my_pool) + dev id: the internal device identifier (32bit value) + + The pool doesn't store any size against the thin devices. If you + load a thin target that is smaller than you've been using previously, + then you wont be able to access mapped blocks beyond the end. If + load a target that is bigger than previously used, then extra blocks + will be provisioned as and when needed. + + If you wish to shrink your thin device and potentially regain some + data blocks then use the 'trim' message to the pool. + +i) Status + + <nr mapped sectors> <highest mapped sector>
drivers/md/Kconfig +8 -0
@@ -208,6 +208,8 @@ config DM_DEBUG If unsure, say N. +source "drivers/md/persistent-data/Kconfig" + config DM_CRYPT tristate "Crypt target support" depends on BLK_DEV_DM
@@ -233,6 +235,12 @@ config DM_SNAPSHOT ---help--- Allow volume managers to take writable snapshots of a device. +config DM_THIN_PROVISIONING + tristate "Thin provisioning target (EXPERIMENTAL)" + depends on BLK_DEV_DM && DM_PERSISTENT_DATA && EXPERIMENTAL + ---help--- + Provides thin provisioning and snapshots that share a data store. + config DM_MIRROR tristate "Mirror target" depends on BLK_DEV_DM
drivers/md/Makefile +3 -0
@@ -10,6 +10,7 @@ dm-snapshot-y += dm-snap.o dm-exception-store.o dm-snap-transient.o \ dm-mirror-y += dm-raid1.o dm-log-userspace-y \ += dm-log-userspace-base.o dm-log-userspace-transfer.o +dm-thinp-y += dm-thin.o dm-thin-metadata.o md-mod-y += md.o bitmap.o raid456-y += raid5.o
@@ -34,10 +35,12 @@ obj-$(CONFIG_DM_MULTIPATH) += dm-multipath.o dm-round-robin.o obj-$(CONFIG_DM_MULTIPATH_QL) += dm-queue-length.o obj-$(CONFIG_DM_MULTIPATH_ST) += dm-service-time.o obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o +obj-$(CONFIG_DM_PERSISTENT_DATA) += persistent-data/ obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o obj-$(CONFIG_DM_ZERO) += dm-zero.o obj-$(CONFIG_DM_RAID) += dm-raid.o +obj-$(CONFIG_DM_THIN_PROVISIONING) += dm-thinp.o ifeq ($(CONFIG_DM_UEVENT),y) dm-mod-objs += dm-uevent.o
drivers/md/dm-thin-metadata.c new file +1281 -0
1,281 lines not on this page · raw message
drivers/md/dm-thin-metadata.h new file +164 -0
164 lines not on this page · raw message
drivers/md/dm-thin.c new file +2204 -0
1,268 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.
Quoted 4 lines · Mike Snitzer
The git tree that we've been using for development can be found here (though it is missing some checkpatch and misc. fixes I made today, Joe will likely push those on Monday):
git://github.com/jthornber/linux-2.6.gitthin-dev
checkpatch changes pushed.
Can I also point out that this work is what I've previously been calling 'multisnap'.
- Joe