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 04-02-2010, 05:17 AM
Mike Snitzer
 
Default move individual dm_multisnap 'flags' values

Moved the definitions of DM_MULTISNAP_SYNC_SNAPSHOTS and
DM_MULTISNAP_PRESERVE_ON_ERROR outside of 'struct dm_multisnap'
---
drivers/md/dm-multisnap-private.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/md/dm-multisnap-private.h b/drivers/md/dm-multisnap-private.h
index 935ddc1..f27e42a 100644
--- a/drivers/md/dm-multisnap-private.h
+++ b/drivers/md/dm-multisnap-private.h
@@ -39,6 +39,10 @@ struct dm_multisnap_bio_queue {

#define DM_MULTISNAP_N_QUEUES 2

+/* multisnap flags which get set by multisnap_origin_ctr() */
+#define DM_MULTISNAP_SYNC_SNAPSHOTS 1
+#define DM_MULTISNAP_PRESERVE_ON_ERROR 2
+
struct dm_multisnap {
struct dm_multisnap_exception_store *store;
struct dm_exception_store *ps;
@@ -52,9 +56,6 @@ struct dm_multisnap {
unsigned char chunk_shift;

unsigned char flags;
- /* FIXME these flags should be defined outside the struct, like agk fixed for merge */
-#define DM_MULTISNAP_SYNC_SNAPSHOTS 1
-#define DM_MULTISNAP_PRESERVE_ON_ERROR 2

sector_t origin_sectors;

--
1.6.6.1

--
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 05:51 PM.

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