aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-09-02 15:28:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:47:06 -0400
commitaeb5d727062a0238a2f96c9c380fbd2be4640c6f (patch)
tree51dae8a071fcf42e4431a66d37c5b843c8e99cf6 /include/linux/device-mapper.h
parent2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff)
[PATCH] introduce fmode_t, do annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 08d783592b73..3f8d4e763672 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -85,7 +85,7 @@ void dm_set_device_limits(struct dm_target *ti, struct block_device *bdev);
85 85
86struct dm_dev { 86struct dm_dev {
87 struct block_device *bdev; 87 struct block_device *bdev;
88 int mode; 88 fmode_t mode;
89 char name[16]; 89 char name[16];
90}; 90};
91 91
@@ -95,7 +95,7 @@ struct dm_dev {
95 * FIXME: too many arguments. 95 * FIXME: too many arguments.
96 */ 96 */
97int dm_get_device(struct dm_target *ti, const char *path, sector_t start, 97int dm_get_device(struct dm_target *ti, const char *path, sector_t start,
98 sector_t len, int mode, struct dm_dev **result); 98 sector_t len, fmode_t mode, struct dm_dev **result);
99void dm_put_device(struct dm_target *ti, struct dm_dev *d); 99void dm_put_device(struct dm_target *ti, struct dm_dev *d);
100 100
101/* 101/*
@@ -223,7 +223,7 @@ int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo);
223/* 223/*
224 * First create an empty table. 224 * First create an empty table.
225 */ 225 */
226int dm_table_create(struct dm_table **result, int mode, 226int dm_table_create(struct dm_table **result, fmode_t mode,
227 unsigned num_targets, struct mapped_device *md); 227 unsigned num_targets, struct mapped_device *md);
228 228
229/* 229/*
@@ -254,7 +254,7 @@ void dm_table_put(struct dm_table *t);
254 */ 254 */
255sector_t dm_table_get_size(struct dm_table *t); 255sector_t dm_table_get_size(struct dm_table *t);
256unsigned int dm_table_get_num_targets(struct dm_table *t); 256unsigned int dm_table_get_num_targets(struct dm_table *t);
257int dm_table_get_mode(struct dm_table *t); 257fmode_t dm_table_get_mode(struct dm_table *t);
258struct mapped_device *dm_table_get_md(struct dm_table *t); 258struct mapped_device *dm_table_get_md(struct dm_table *t);
259 259
260/* 260/*