Deleted Added
full compact
kern_shutdown.c (50107) kern_shutdown.c (50253)
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.60 1999/08/13 10:29:21 phk Exp $
39 * $Id: kern_shutdown.c,v 1.61 1999/08/21 06:24:20 msmith 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>

--- 197 unchanged lines hidden (view full) ---

245 printf("giving up\n");
246#ifdef SHOW_BUSYBUFS
247 nbusy = 0;
248 for (bp = &buf[nbuf]; --bp >= buf; ) {
249 if ((bp->b_flags & B_INVAL) == 0 &&
250 BUF_REFCNT(bp) > 0) {
251 nbusy++;
252 printf(
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>

--- 197 unchanged lines hidden (view full) ---

245 printf("giving up\n");
246#ifdef SHOW_BUSYBUFS
247 nbusy = 0;
248 for (bp = &buf[nbuf]; --bp >= buf; ) {
249 if ((bp->b_flags & B_INVAL) == 0 &&
250 BUF_REFCNT(bp) > 0) {
251 nbusy++;
252 printf(
253 "%d: dev:%08lx, flags:%08lx, blkno:%ld, lblkno:%ld\n",
254 nbusy, (u_long)bp->b_dev,
253 "%d: dev:%s, flags:%08lx, blkno:%ld, lblkno:%ld\n",
254 nbusy, devtoname(bp->b_dev),
255 bp->b_flags, (long)bp->b_blkno,
256 (long)bp->b_lblkno);
257 }
258 }
259 DELAY(5000000); /* 5 seconds */
260#endif
261 } else {
262 printf("done\n");

--- 283 unchanged lines hidden ---
255 bp->b_flags, (long)bp->b_blkno,
256 (long)bp->b_lblkno);
257 }
258 }
259 DELAY(5000000); /* 5 seconds */
260#endif
261 } else {
262 printf("done\n");

--- 283 unchanged lines hidden ---