summaryrefslogtreecommitdiff
path: root/restripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'restripe.c')
-rw-r--r--restripe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/restripe.c b/restripe.c
index 3074693..9ae1b85 100644
--- a/restripe.c
+++ b/restripe.c
@@ -777,6 +777,14 @@ main(int argc, char *argv[])
exit(3);
}
for (i=0; i<raid_disks; i++) {
+ char *p;
+ p = strchr(argv[9+i], ':');
+
+ if(p != NULL) {
+ *p++ = '\0';
+ offsets[i] = atoll(p) * 512;
+ }
+
fds[i] = open(argv[9+i], O_RDWR);
if (fds[i] < 0) {
perror(argv[9+i]);