FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 03-17-2009, 01:05 PM
Jonathan Brassow
 
Default dm-exception-store-add-shared_uuid.patch

Index: linux-2.6/drivers/md/dm-exception-store.h
================================================== =================
--- linux-2.6.orig/drivers/md/dm-exception-store.h
+++ linux-2.6/drivers/md/dm-exception-store.h
@@ -96,6 +96,16 @@ struct dm_exception_store {

struct dm_dev *cow;

+ /*
+ * If the underlying exception store implementation is shared,
+ * it can set 'shared_uuid' to identify which 'dm_exception_store's
+ * share the same underlying implementation specific store.
+ *
+ * The user can use this ID to consolidate work/structures in
+ * the upper layers.
+ */
+ uint64_t shared_uuid;
+
/* Size of data blocks saved - must be a power of 2 */
chunk_t chunk_size;
chunk_t chunk_mask;
Index: linux-2.6/drivers/md/dm-exception-store.c
================================================== =================
--- linux-2.6.orig/drivers/md/dm-exception-store.c
+++ linux-2.6/drivers/md/dm-exception-store.c
@@ -223,6 +223,7 @@ int dm_exception_store_create(const char

tmp_store->type = type;
tmp_store->ti = ti;
+ tmp_store->shared_uuid = 0;

/*
* COW-dev and chunk_size are common to all types of

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 04:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org