dm-stripe.c (3fa04ecd72780da31ba8b329e148179bc24a9c7d) | dm-stripe.c (8215d6ec5fee1e76545decea2cd73717efb5cb42) |
---|---|
1/* 2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include <linux/device-mapper.h> 8 --- 66 unchanged lines hidden (view full) --- 75static int get_stripe(struct dm_target *ti, struct stripe_c *sc, 76 unsigned int stripe, char **argv) 77{ 78 unsigned long long start; 79 80 if (sscanf(argv[1], "%llu", &start) != 1) 81 return -EINVAL; 82 | 1/* 2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include <linux/device-mapper.h> 8 --- 66 unchanged lines hidden (view full) --- 75static int get_stripe(struct dm_target *ti, struct stripe_c *sc, 76 unsigned int stripe, char **argv) 77{ 78 unsigned long long start; 79 80 if (sscanf(argv[1], "%llu", &start) != 1) 81 return -EINVAL; 82 |
83 if (dm_get_device(ti, argv[0], start, sc->stripe_width, 84 dm_table_get_mode(ti->table), | 83 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), |
85 &sc->stripe[stripe].dev)) 86 return -ENXIO; 87 88 sc->stripe[stripe].physical_start = start; 89 90 return 0; 91} 92 --- 289 unchanged lines hidden --- | 84 &sc->stripe[stripe].dev)) 85 return -ENXIO; 86 87 sc->stripe[stripe].physical_start = start; 88 89 return 0; 90} 91 --- 289 unchanged lines hidden --- |