kern_shutdown.c (46635) | kern_shutdown.c (46676) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 |
39 * $Id: kern_shutdown.c,v 1.49 1999/05/06 18:12:44 peter Exp $ | 39 * $Id: kern_shutdown.c,v 1.50 1999/05/07 10:10:53 phk Exp $ |
40 */ 41 42#include "opt_ddb.h" 43#include "opt_hw_wdog.h" 44#include "opt_panic.h" 45#include "opt_show_busybufs.h" 46 47#include <sys/param.h> --- 324 unchanged lines hidden (view full) --- 372static void 373dumpsys(void) 374{ 375 376 if (!dodump) 377 return; 378 if (dumpdev == NODEV) 379 return; | 40 */ 41 42#include "opt_ddb.h" 43#include "opt_hw_wdog.h" 44#include "opt_panic.h" 45#include "opt_show_busybufs.h" 46 47#include <sys/param.h> --- 324 unchanged lines hidden (view full) --- 372static void 373dumpsys(void) 374{ 375 376 if (!dodump) 377 return; 378 if (dumpdev == NODEV) 379 return; |
380 if (!(bdevsw(major(dumpdev)))) | 380 if (!(bdevsw(dumpdev))) |
381 return; | 381 return; |
382 if (!(bdevsw(major(dumpdev))->d_dump)) | 382 if (!(bdevsw(dumpdev)->d_dump)) |
383 return; 384 dumpsize = Maxmem; 385 printf("\ndumping to dev %lx, offset %ld\n", (u_long)dumpdev, dumplo); 386 printf("dump "); | 383 return; 384 dumpsize = Maxmem; 385 printf("\ndumping to dev %lx, offset %ld\n", (u_long)dumpdev, dumplo); 386 printf("dump "); |
387 switch ((*bdevsw(major(dumpdev))->d_dump)(dumpdev)) { | 387 switch ((*bdevsw(dumpdev)->d_dump)(dumpdev)) { |
388 389 case ENXIO: 390 printf("device bad\n"); 391 break; 392 393 case EFAULT: 394 printf("device not ready\n"); 395 break; --- 163 unchanged lines hidden --- | 388 389 case ENXIO: 390 printf("device bad\n"); 391 break; 392 393 case EFAULT: 394 printf("device not ready\n"); 395 break; --- 163 unchanged lines hidden --- |