summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/commands.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-02-06 02:40:22 +0000
committerpeter <peter@FreeBSD.org>2000-02-06 02:40:22 +0000
commite5f21c38e30491045aeeda37623a6de3da4f7cbd (patch)
tree49aac38fbf952bad66eac2bb0dafb0e062c40065 /sbin/vinum/commands.c
parentb57f9be4b788fc9ec1fdcfb1979d076f6dfb6be6 (diff)
downloadFreeBSD-src-e5f21c38e30491045aeeda37623a6de3da4f7cbd.zip
FreeBSD-src-e5f21c38e30491045aeeda37623a6de3da4f7cbd.tar.gz
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
Diffstat (limited to 'sbin/vinum/commands.c')
-rw-r--r--sbin/vinum/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index 494132d..f46b543 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -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 */
OpenPOWER on IntegriCloud