efe92bcae0
- Add incremental remove support
37 lines
992 B
Diff
37 lines
992 B
Diff
commit ddda49f6daf481471334f5675fbc1fa149d83ad6
|
|
Author: Doug Ledford <dledford@redhat.com>
|
|
Date: Tue Apr 6 12:17:25 2010 -0400
|
|
|
|
Minor bug fix to incremental remove support
|
|
|
|
Signed-off-by: Doug Ledford <dledford@redhat.com>
|
|
|
|
diff --git a/Manage.c b/Manage.c
|
|
index 6539eda..b15586b 100644
|
|
--- a/Manage.c
|
|
+++ b/Manage.c
|
|
@@ -386,6 +386,7 @@ int Manage_subdevs(char *devname, int fd,
|
|
|
|
next = dv->next;
|
|
jnext = 0;
|
|
+ tfd = -1;
|
|
|
|
if (strcmp(dv->devname, "failed")==0 ||
|
|
strcmp(dv->devname, "faulty")==0) {
|
|
@@ -406,6 +407,7 @@ int Manage_subdevs(char *devname, int fd,
|
|
stb.st_rdev = makedev(disc.major, disc.minor);
|
|
next = dv;
|
|
jnext = j+1;
|
|
+ tfd = 0;
|
|
sprintf(dvname,"%d:%d", disc.major, disc.minor);
|
|
dnprintable = dvname;
|
|
break;
|
|
@@ -440,6 +442,7 @@ int Manage_subdevs(char *devname, int fd,
|
|
stb.st_rdev = makedev(disc.major, disc.minor);
|
|
next = dv;
|
|
jnext = j+1;
|
|
+ tfd = 0;
|
|
dnprintable = dvname;
|
|
break;
|
|
}
|