Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dm-snap.c File Reference
#include <linux/blkdev.h>
#include <linux/device-mapper.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kdev_t.h>
#include <linux/list.h>
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/log2.h>
#include <linux/dm-kcopyd.h>
#include "dm-exception-store.h"

Go to the source code of this file.

Data Structures

struct  dm_exception_table
 
struct  dm_snapshot
 
struct  dm_snap_pending_exception
 
struct  dm_snap_tracked_chunk
 
struct  origin
 

Macros

#define DM_MSG_PREFIX   "snapshots"
 
#define dm_target_is_snapshot_merge(ti)   ((ti)->type->name == dm_snapshot_merge_target_name)
 
#define MIN_IOS   256
 
#define DM_TRACKED_CHUNK_HASH_SIZE   16
 
#define DM_TRACKED_CHUNK_HASH(x)
 
#define RUNNING_MERGE   0
 
#define SHUTDOWN_MERGE   1
 
#define ORIGIN_HASH_SIZE   256
 
#define ORIGIN_MASK   0xFF
 

Functions

struct dm_devdm_snap_origin (struct dm_snapshot *s)
 
 EXPORT_SYMBOL (dm_snap_origin)
 
struct dm_devdm_snap_cow (struct dm_snapshot *s)
 
 EXPORT_SYMBOL (dm_snap_cow)
 
 module_init (dm_snapshot_init)
 
 module_exit (dm_snapshot_exit)
 
 MODULE_DESCRIPTION (DM_NAME" snapshot target")
 
 MODULE_AUTHOR ("Joe Thornber")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DM_MSG_PREFIX   "snapshots"

Definition at line 25 of file dm-snap.c.

#define dm_target_is_snapshot_merge (   ti)    ((ti)->type->name == dm_snapshot_merge_target_name)

Definition at line 29 of file dm-snap.c.

#define DM_TRACKED_CHUNK_HASH (   x)
Value:
((unsigned long)(x) & \

Definition at line 38 of file dm-snap.c.

#define DM_TRACKED_CHUNK_HASH_SIZE   16

Definition at line 37 of file dm-snap.c.

#define MIN_IOS   256

Definition at line 35 of file dm-snap.c.

#define ORIGIN_HASH_SIZE   256

Definition at line 273 of file dm-snap.c.

#define ORIGIN_MASK   0xFF

Definition at line 274 of file dm-snap.c.

#define RUNNING_MERGE   0

Definition at line 125 of file dm-snap.c.

#define SHUTDOWN_MERGE   1

Definition at line 126 of file dm-snap.c.

Function Documentation

struct dm_dev* dm_snap_cow ( struct dm_snapshot s)
read

Definition at line 134 of file dm-snap.c.

struct dm_dev* dm_snap_origin ( struct dm_snapshot s)
read

Definition at line 128 of file dm-snap.c.

EXPORT_SYMBOL ( dm_snap_origin  )
EXPORT_SYMBOL ( dm_snap_cow  )
MODULE_AUTHOR ( "Joe Thornber"  )
MODULE_DESCRIPTION ( DM_NAME" snapshot target )
module_exit ( dm_snapshot_exit  )
module_init ( dm_snapshot_init  )
MODULE_LICENSE ( "GPL"  )