Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/sbin/raidctl Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/1badd624068d
branches:  netbsd-3-0
changeset: 579518:1badd624068d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Jan 31 21:26:47 2009 +0000

description:
Pull up following revision(s) (requested by tron in ticket #1989):
        sbin/raidctl/raidctl.c: revision 1.40
Use correct format to print the "numBlocks" element in a RAIDframe
component label. raidctl(8) should now print the correct number of
blocks for RAID sets larger than 1TB.
Patch supplied by Bernhard Moellemann in PR bin/40479.

diffstat:

 sbin/raidctl/raidctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6014084cabec -r 1badd624068d sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Thu Jan 15 21:45:23 2009 +0000
+++ b/sbin/raidctl/raidctl.c    Sat Jan 31 21:26:47 2009 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.36.2.1 2005/05/28 13:50:16 tron Exp $   */
+/*      $NetBSD: raidctl.c,v 1.36.2.1.2.1 2009/01/31 21:26:47 bouyer Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.36.2.1 2005/05/28 13:50:16 tron Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.36.2.1.2.1 2009/01/31 21:26:47 bouyer Exp $");
 #endif
 
 
@@ -631,7 +631,7 @@
        printf("   sectPerSU: %d, SUsPerPU: %d, SUsPerRU: %d\n",
               component_label.sectPerSU, component_label.SUsPerPU, 
               component_label.SUsPerRU);
-       printf("   Queue size: %d, blocksize: %d, numBlocks: %d\n",
+       printf("   Queue size: %d, blocksize: %d, numBlocks: %u\n",
               component_label.maxOutstanding, component_label.blockSize,
               component_label.numBlocks);
        printf("   RAID Level: %c\n", (char) component_label.parityConfig);



Home | Main Index | Thread Index | Old Index