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:
Peter Wemm 2000-02-06 02:40:22 +00:00
parent 418d67b0d9
commit ea3ea274b1
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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)
{