Don't use /dev/vinum/rsd/XXX for init as it doesn't exist any more.
Without this change, you cannot do the required init on a new raid5 volume. Reviewed by: grog Approved by: jkh
This commit is contained in:
parent
418d67b0d9
commit
ea3ea274b1
@ -447,7 +447,7 @@ initsd(int sdno, int dowait)
|
||||
openlog("vinum", LOG_CONS | LOG_PERROR | LOG_PID, LOG_KERN);
|
||||
get_sd_info(&sd, sdno);
|
||||
sdsize = sd.sectors * DEV_BSIZE; /* size of subdisk in bytes */
|
||||
sprintf(filename, VINUM_DIR "/rsd/%s", sd.name);
|
||||
sprintf(filename, VINUM_DIR "/sd/%s", sd.name);
|
||||
setproctitle("initializing %s", filename); /* show what we're doing */
|
||||
syslog(LOG_INFO | LOG_KERN, "initializing subdisk %s", filename);
|
||||
if ((sdfh = open(filename, O_RDWR, S_IRWXU)) < 0) { /* no go */
|
||||
|
@ -607,7 +607,7 @@ make_plex_dev(int plexno, int recurse)
|
||||
}
|
||||
}
|
||||
|
||||
/* Create the contents of /dev/vinum/sd and /dev/vinum/rsd */
|
||||
/* Create the contents of /dev/vinum/sd */
|
||||
void
|
||||
make_sd_dev(int sdno)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user