From owner-p4-projects@FreeBSD.ORG Sat May 20 06:35:23 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 22B6F16A422; Sat, 20 May 2006 06:35:23 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA7B116A41F for ; Sat, 20 May 2006 06:35:22 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B8F743D48 for ; Sat, 20 May 2006 06:35:22 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4K6YoUR011737 for ; Sat, 20 May 2006 06:34:50 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4K6YoUb011734 for perforce@freebsd.org; Sat, 20 May 2006 06:34:50 GMT (envelope-from kmacy@freebsd.org) Date: Sat, 20 May 2006 06:34:50 GMT Message-Id: <200605200634.k4K6YoUb011734@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 97500 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 06:35:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=97500 Change 97500 by kmacy@kmacy_storage:sun4v_work on 2006/05/20 06:34:45 reduce the loader noise Affected files ... .. //depot/projects/kmacy_sun4v/src/lib/libstand/ufs.c#4 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/lib/libstand/ufs.c#4 (text+ko) ==== @@ -666,8 +666,8 @@ if (rc || read_size != 512) printf("strategy failed\n"); +#if 0 printf("%04d\n", i); -#if 0 hdump(buf, 512); #endif @@ -692,18 +692,19 @@ test_disk(f); #endif length = strlen(name); - +#if 0 printf("search_directory: name=%s\n", name); - +#endif fp->f_seekp = 0; while (fp->f_seekp < DIP(fp, di_size)) { int i; rc = buf_read_file(f, &buf, &buf_size); if (rc) return (rc); - +#if 0 printf("scan directory entries: @ 0x%llx (size=0x%llx)\n", (uint64_t)buf, (uint64_t)buf_size); +#endif dp = (struct direct *)buf; edp = (struct direct *)(buf + buf_size); i = 0; @@ -746,7 +747,7 @@ void map_sblock(struct fs *fsp) { struct solaris_fs sfs = *(struct solaris_fs *)fsp; - +#if 0 printf("fbsd fs_qfmask offset %lx solaris fs_qfmask offset %lx\n", offsetof(struct fs, fs_qfmask), offsetof(struct solaris_fs, fs_qfmask)); printf("fbsd fs_qbmask offset %lx solaris fs_qbmask offset %lx\n", @@ -755,9 +756,10 @@ printf(" fsp->fs_qbmask: %llx = sfs.fs_qbmask %08lx%08lx;\n", fsp->fs_qbmask, sfs.fs_qbmask.val[0], sfs.fs_qbmask.val[1]); - fsp->fs_qbmask = ((uint64_t)sfs.fs_qbmask.val[0]) << 32 | sfs.fs_qbmask.val[1]; printf(" fsp->fs_qfmask: %llx = sfs.fs_qfmask %08lx%08lx;\n", fsp->fs_qfmask, sfs.fs_qfmask.val[0], sfs.fs_qfmask.val[1]); +#endif + fsp->fs_qbmask = ((uint64_t)sfs.fs_qbmask.val[0]) << 32 | sfs.fs_qbmask.val[1]; fsp->fs_qfmask = ((uint64_t)sfs.fs_qfmask.val[0]) << 32 | sfs.fs_qfmask.val[1]; } @@ -850,8 +852,9 @@ goto out; } +#if 0 printf("read root inode \n"); - +#endif cp = path = strdup(upath); if (path == NULL) { rc = ENOMEM;