[PATCH 3/9] dm snapshot: add message hook to struct exception_store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This enables exception store code to handle the message hook in struct
target_type. Exception store implementations can provide useful
features such as providing delta between two snapshots to user space.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
---
 drivers/md/dm-snap.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h
index d73d2c6..c4f1df4 100644
--- a/drivers/md/dm-snap.h
+++ b/drivers/md/dm-snap.h
@@ -132,6 +132,13 @@ struct exception_store {
 	struct dm_snap_exception *(*lookup_completed_exception)
 	(struct exception_store *store, chunk_t chunk);
 
+	/*
+	 * let exception store code to handle the message hook in
+	 * struct target_type.
+	 */
+	int (*message)(struct exception_store *store, unsigned argc,
+		       char **argv);
+
 	struct dm_snapshot *snap;
 	void *context;
 };
-- 
1.5.5.GIT

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

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux