Lines Matching refs:store
8 #include "dm-exception-store.h"
20 * Implementation of the store for non-persistent snapshots.
26 static void transient_dtr(struct dm_exception_store *store)
28 kfree(store->context);
31 static int transient_read_metadata(struct dm_exception_store *store,
39 static int transient_prepare_exception(struct dm_exception_store *store,
42 struct transient_c *tc = store->context;
43 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev);
45 if (size < (tc->next_free + store->chunk_size))
48 e->new_chunk = sector_to_chunk(store, tc->next_free);
49 tc->next_free += store->chunk_size;
54 static void transient_commit_exception(struct dm_exception_store *store,
63 static void transient_usage(struct dm_exception_store *store,
68 *sectors_allocated = ((struct transient_c *) store->context)->next_free;
69 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev);
73 static int transient_ctr(struct dm_exception_store *store, char *options)
82 store->context = tc;
87 static unsigned transient_status(struct dm_exception_store *store,
97 DMEMIT(" N %llu", (unsigned long long)store->chunk_size);
133 DMWARN("Unable to register transient exception store type");
140 "exception store type");