diff options
author | NeilBrown <neilb@suse.de> | 2008-08-19 17:55:15 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-08-19 17:55:15 +1000 |
commit | 3c558363a1991430e8a9e10c93ee9ee3f8996940 (patch) | |
tree | abdf504295509f53b43d465e93c36b04810c5e7d /mdadm.h | |
parent | 6c386dd368ca1d24554fbf700239e8aa222591fb (diff) |
Factor out test for subarray version string.
We are about to change the syntax of the version string
for 'subarray's. So factor out the test into a single function.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -805,6 +805,11 @@ static inline int ROUND_UP(int a, int base) return ((a+base-1)/base)*base; } +static inline int is_subarray(char *vers) +{ + return (*vers == '/'); +} + #define LEVEL_MULTIPATH (-4) #define LEVEL_LINEAR (-1) #define LEVEL_FAULTY (-5) |