History log of /drivers/md/dm-snap-transient.c
Revision Date Author Comments
daaa5f7cbee37dfc8464d350f1eacd6e94b278cc 27-May-2011 Paul Gortmaker <paul.gortmaker@windriver.com> md: Add in export.h for files using EXPORT_SYMBOL

These files were getting the defines for EXPORT_SYMBOL because
device.h was including module.h. But we are going to put an
end to that. So add the proper export.h include now.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fc56f6fbcca3672c63c93c65f45105faacfc13cb 11-Dec-2009 Mike Snitzer <snitzer@redhat.com> dm snapshot: move cow ref from exception store to snap core

Store the reference to the snapshot cow device in the core snapshot
code instead of each exception store. It can be accessed through the
new function dm_snap_cow(). Exception stores should each now maintain a
reference to their parent snapshot struct.

This is cleaner and makes part of the forthcoming snapshot merge code simpler.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Reviewed-by: Jonathan Brassow <jbrassow@redhat.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
985903bb3a6d98623360ab6c855417f638840029 11-Dec-2009 Mike Snitzer <snitzer@redhat.com> dm snapshot: add allocated metadata to snapshot status

Add number of sectors used by metadata to the end of the snapshot's status
line.

Renamed dm_exception_store_type's 'fraction_full' to 'usage'. Renamed
arguments to be clearer about what is being returned. Also added
'metadata_sectors'.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
1d4989c858093bda0426be536fc7f9c415857836 11-Dec-2009 Jon Brassow <jbrassow@redhat.com> dm snapshot: rename dm_snap_exception to dm_exception

The exception structure is not necessarily just a snapshot
element (especially after we pull it out of dm-snap.c).

Renaming appropriately.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
1e302a929e2da6e8448e2058e4b07b07252b57fe 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm snapshot: move status to exception store

Let the exception store types print out their status through
the new API, rather than having the snapshot code do it.

Adjust the buffer position to allow for the preceding DMEMIT in the
arguments to type->status().

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
71fab00a6bef7fb53119271a8abdbaf40970d28a 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm snapshot: remove dm_snap header use

Move useful functions out of dm-snap.h and stop using dm-snap.h.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
49beb2b87a972a994ff77633234ca3bf0d30a1d8 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm exception store: move cow pointer

Move COW device from snapshot to exception store.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
d0216849519bec8dc96301a3cd80316e71243839 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm exception store: move chunk_fields

Move chunk fields from snapshot to exception store.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
493df71c6420b211a68ae82b889c1e8a5fe701be 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm exception store: introduce registry

Move exception stores into a registry.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
b2a114652940ccf7e9668ad447ca78bf16a31139 02-Apr-2009 Jonathan Brassow <jbrassow@redhat.com> dm exception store: separate type from instance

Introduce struct dm_exception_store_type.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
a159c1ac5f33c6cf0f5aa3c9d1ccdc82c907ee46 06-Jan-2009 Jonathan Brassow <jbrassow@redhat.com> dm snapshot: extend exception store functions

Supply dm_add_exception as a callback to the read_metadata function.
Add a status function ready for a later patch and name the functions
consistently.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
4db6bfe02bdc7dc5048f46dd682a94801d029adc 06-Jan-2009 Alasdair G Kergon <agk@redhat.com> dm snapshot: split out exception store implementations

Move the existing snapshot exception store implementations out into
separate files. Later patches will place these behind a new
interface in preparation for alternative implementations.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>