diff options
author | Ed L. Cashin <ecashin@coraid.com> | 2006-01-19 13:46:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-24 01:01:55 -0500 |
commit | 3ae1c24e395b2b65326439622223d88d92bfa03a (patch) | |
tree | df1e7e8e63a37ed91407ea5da6535b64f50e64a2 /drivers/block/aoe/aoe.h | |
parent | 50bba752ca0a740a6ba9eb96d61ef7bbdfe405cf (diff) |
[PATCH] aoe [2/8]: support dynamic resizing of AoE devices
Allow the driver to recognize AoE devices that have changed size.
Devices not in use are updated automatically, and devices that are in
use are updated at user request.
Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/aoe/aoe.h')
-rw-r--r-- | drivers/block/aoe/aoe.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index 881c48d941b7..bb7dd91e5d48 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h | |||
@@ -75,8 +75,9 @@ enum { | |||
75 | DEVFL_TKILL = (1<<1), /* flag for timer to know when to kill self */ | 75 | DEVFL_TKILL = (1<<1), /* flag for timer to know when to kill self */ |
76 | DEVFL_EXT = (1<<2), /* device accepts lba48 commands */ | 76 | DEVFL_EXT = (1<<2), /* device accepts lba48 commands */ |
77 | DEVFL_CLOSEWAIT = (1<<3), /* device is waiting for all closes to revalidate */ | 77 | DEVFL_CLOSEWAIT = (1<<3), /* device is waiting for all closes to revalidate */ |
78 | DEVFL_WC_UPDATE = (1<<4), /* this device needs to update write cache status */ | 78 | DEVFL_GDALLOC = (1<<4), /* need to alloc gendisk */ |
79 | DEVFL_WORKON = (1<<4), | 79 | DEVFL_PAUSE = (1<<5), |
80 | DEVFL_NEWSIZE = (1<<6), /* need to update dev size in block layer */ | ||
80 | 81 | ||
81 | BUFFL_FAIL = 1, | 82 | BUFFL_FAIL = 1, |
82 | }; | 83 | }; |
@@ -152,16 +153,17 @@ void aoechr_exit(void); | |||
152 | void aoechr_error(char *); | 153 | void aoechr_error(char *); |
153 | 154 | ||
154 | void aoecmd_work(struct aoedev *d); | 155 | void aoecmd_work(struct aoedev *d); |
155 | void aoecmd_cfg(ushort, unsigned char); | 156 | void aoecmd_cfg(ushort aoemajor, unsigned char aoeminor); |
156 | void aoecmd_ata_rsp(struct sk_buff *); | 157 | void aoecmd_ata_rsp(struct sk_buff *); |
157 | void aoecmd_cfg_rsp(struct sk_buff *); | 158 | void aoecmd_cfg_rsp(struct sk_buff *); |
159 | void aoecmd_sleepwork(void *vp); | ||
158 | 160 | ||
159 | int aoedev_init(void); | 161 | int aoedev_init(void); |
160 | void aoedev_exit(void); | 162 | void aoedev_exit(void); |
161 | struct aoedev *aoedev_by_aoeaddr(int maj, int min); | 163 | struct aoedev *aoedev_by_aoeaddr(int maj, int min); |
164 | struct aoedev *aoedev_by_sysminor_m(ulong sysminor, ulong bufcnt); | ||
162 | void aoedev_downdev(struct aoedev *d); | 165 | void aoedev_downdev(struct aoedev *d); |
163 | struct aoedev *aoedev_set(ulong, unsigned char *, struct net_device *, ulong); | 166 | int aoedev_isbusy(struct aoedev *d); |
164 | int aoedev_busy(void); | ||
165 | 167 | ||
166 | int aoenet_init(void); | 168 | int aoenet_init(void); |
167 | void aoenet_exit(void); | 169 | void aoenet_exit(void); |