SCCS-vsn: sys/vax/vax/autoconf.c 6.19
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)autoconf.c 6.18 (Berkeley) %G%
+ * @(#)autoconf.c 6.19 (Berkeley) %G%
mindev = (mindev << PARTITIONSHIFT) + part;
orootdev = rootdev;
rootdev = makedev(majdev, mindev);
mindev = (mindev << PARTITIONSHIFT) + part;
orootdev = rootdev;
rootdev = makedev(majdev, mindev);
/*
* If the original rootdev is the same as the one
* just calculated, don't need to adjust the swap configuration.
/*
* If the original rootdev is the same as the one
* just calculated, don't need to adjust the swap configuration.
if (rootdev == orootdev)
return;
if (rootdev == orootdev)
return;
+ printf("Changing root device to %c%c(%d, %d)\n",
+ devname[majdev][0], devname[majdev][1], majdev, mindev);
+
+#ifdef DOSWAP
mindev &= ~PARTITIONMASK;
for (swp = swdevt; swp->sw_dev; swp++) {
if (majdev == major(swp->sw_dev) &&
mindev &= ~PARTITIONMASK;
for (swp = swdevt; swp->sw_dev; swp++) {
if (majdev == major(swp->sw_dev) &&