dm.h (1134e5ae79bab61c05657ca35a6297cf87202e35) dm.h (3ac51e741a46af7a20f55e79d3e3aeaa93c6c544)
1/*
2 * Internal header file for device mapper
3 *
4 * Copyright (C) 2001, 2002 Sistina Software
5 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
6 *
7 * This file is released under the LGPL.
8 */
9
10#ifndef DM_INTERNAL_H
11#define DM_INTERNAL_H
12
13#include <linux/fs.h>
14#include <linux/device-mapper.h>
15#include <linux/list.h>
16#include <linux/blkdev.h>
1/*
2 * Internal header file for device mapper
3 *
4 * Copyright (C) 2001, 2002 Sistina Software
5 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
6 *
7 * This file is released under the LGPL.
8 */
9
10#ifndef DM_INTERNAL_H
11#define DM_INTERNAL_H
12
13#include <linux/fs.h>
14#include <linux/device-mapper.h>
15#include <linux/list.h>
16#include <linux/blkdev.h>
17#include <linux/hdreg.h>
17
18#define DM_NAME "device-mapper"
19#define DMWARN(f, x...) printk(KERN_WARNING DM_NAME ": " f "\n" , ## x)
20#define DMERR(f, x...) printk(KERN_ERR DM_NAME ": " f "\n" , ## x)
21#define DMINFO(f, x...) printk(KERN_INFO DM_NAME ": " f "\n" , ## x)
22
23#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
24 0 : scnprintf(result + sz, maxlen - sz, x))

--- 55 unchanged lines hidden (view full) ---

80int dm_wait_event(struct mapped_device *md, int event_nr);
81
82/*
83 * Info functions.
84 */
85struct gendisk *dm_disk(struct mapped_device *md);
86int dm_suspended(struct mapped_device *md);
87
18
19#define DM_NAME "device-mapper"
20#define DMWARN(f, x...) printk(KERN_WARNING DM_NAME ": " f "\n" , ## x)
21#define DMERR(f, x...) printk(KERN_ERR DM_NAME ": " f "\n" , ## x)
22#define DMINFO(f, x...) printk(KERN_INFO DM_NAME ": " f "\n" , ## x)
23
24#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
25 0 : scnprintf(result + sz, maxlen - sz, x))

--- 55 unchanged lines hidden (view full) ---

81int dm_wait_event(struct mapped_device *md, int event_nr);
82
83/*
84 * Info functions.
85 */
86struct gendisk *dm_disk(struct mapped_device *md);
87int dm_suspended(struct mapped_device *md);
88
89/*
90 * Geometry functions.
91 */
92int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo);
93int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo);
94
88/*-----------------------------------------------------------------
89 * Functions for manipulating a table. Tables are also reference
90 * counted.
91 *---------------------------------------------------------------*/
92int dm_table_create(struct dm_table **result, int mode,
93 unsigned num_targets, struct mapped_device *md);
94
95void dm_table_get(struct dm_table *t);

--- 93 unchanged lines hidden ---
95/*-----------------------------------------------------------------
96 * Functions for manipulating a table. Tables are also reference
97 * counted.
98 *---------------------------------------------------------------*/
99int dm_table_create(struct dm_table **result, int mode,
100 unsigned num_targets, struct mapped_device *md);
101
102void dm_table_get(struct dm_table *t);

--- 93 unchanged lines hidden ---