[PATCH 05/10] dm snapshot: add get_snapshot_info hook to struct exception_store

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

 



dm-snap can use this interface to get the information of available
snapshots (such as the number of current snapshots) from exception
store code.

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

diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h
index 3d43307..4eefb90 100644
--- a/drivers/md/dm-snap.h
+++ b/drivers/md/dm-snap.h
@@ -139,6 +139,12 @@ struct exception_store {
 	int (*message)(struct exception_store *store, unsigned argc,
 		       char **argv);
 
+	/*
+	 * get the info about available snapshot
+	 */
+	u32 (*get_snapshot_info)(struct exception_store *store,
+				 unsigned long *map, size_t size);
+
 	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