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-15-2010, 05:01 AM
Mikulas Patocka
 
Default Add dm_snap_origin function

Add dm_snap_origin function

Add function dm_snap_origin, it will be used for checking chunk size against
origin sector size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
drivers/md/dm-exception-store.h | 3 ++-
drivers/md/dm-snap.c | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)

Index: linux-2.6.34-rc1-devel/drivers/md/dm-exception-store.h
================================================== =================
--- linux-2.6.34-rc1-devel.orig/drivers/md/dm-exception-store.h 2010-03-12 14:41:37.000000000 +0100
+++ linux-2.6.34-rc1-devel/drivers/md/dm-exception-store.h 2010-03-12 14:42:11.000000000 +0100
@@ -126,8 +126,9 @@ struct dm_exception_store {
};

/*
- * Obtain the cow device used by a given snapshot.
+ * Obtain the origin and cow device used by a given snapshot.
*/
+struct dm_dev *dm_snap_origin(struct dm_snapshot *snap);
struct dm_dev *dm_snap_cow(struct dm_snapshot *snap);

/*
Index: linux-2.6.34-rc1-devel/drivers/md/dm-snap.c
================================================== =================
--- linux-2.6.34-rc1-devel.orig/drivers/md/dm-snap.c 2010-03-12 14:41:20.000000000 +0100
+++ linux-2.6.34-rc1-devel/drivers/md/dm-snap.c 2010-03-12 14:42:37.000000000 +0100
@@ -148,6 +148,12 @@ struct dm_snapshot {
#define RUNNING_MERGE 0
#define SHUTDOWN_MERGE 1

+struct dm_dev *dm_snap_origin(struct dm_snapshot *s)
+{
+ return s->origin;
+}
+EXPORT_SYMBOL(dm_snap_origin);
+
struct dm_dev *dm_snap_cow(struct dm_snapshot *s)
{
return s->cow;

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 03-15-2010, 01:20 PM
Mike Snitzer
 
Default Add dm_snap_origin function

On Mon, Mar 15 2010 at 2:01am -0400,
Mikulas Patocka <mpatocka@redhat.com> wrote:

> Add dm_snap_origin function
>
> Add function dm_snap_origin, it will be used for checking chunk size against
> origin sector size.
>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

Reviewed-by: Mike Snitzer <snitzer@redhat.com>

--
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 11:57 AM.

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