From owner-freebsd-bugs@FreeBSD.ORG Sat Mar 6 06:40:12 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ADC316A4CF for ; Sat, 6 Mar 2004 06:40:12 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1645243D2D for ; Sat, 6 Mar 2004 06:40:12 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i26EeBbv006853 for ; Sat, 6 Mar 2004 06:40:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i26EeBP9006852; Sat, 6 Mar 2004 06:40:11 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 6 Mar 2004 06:40:11 -0800 (PST) Resent-Message-Id: <200403061440.i26EeBP9006852@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Morozovsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DE5E16A4CE for ; Sat, 6 Mar 2004 06:33:53 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7408043D2F for ; Sat, 6 Mar 2004 06:33:52 -0800 (PST) (envelope-from marck@woozle.rinet.ru) Received: from woozle.rinet.ru (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.10/8.12.10) with ESMTP id i26EXoci012163 for ; Sat, 6 Mar 2004 17:33:50 +0300 (MSK) (envelope-from marck@woozle.rinet.ru) Received: (from marck@localhost) by woozle.rinet.ru (8.12.10/8.12.10/Submit) id i26EXoZH012162; Sat, 6 Mar 2004 17:33:50 +0300 (MSK) (envelope-from marck) Message-Id: <200403061433.i26EXoZH012162@woozle.rinet.ru> Date: Sat, 6 Mar 2004 17:33:50 +0300 (MSK) From: Dmitry Morozovsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/63839: [patch] vinum fake-disklabel block/frag fix X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dmitry Morozovsky List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 14:40:12 -0000 >Number: 63839 >Category: kern >Synopsis: [patch] vinum fake-disklabel block/frag fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 06 06:40:11 PST 2004 >Closed-Date: >Last-Modified: >Originator: Dmitry Morozovsky >Release: FreeBSD 4-STABLE i386 >Organization: Cronyx Plus LLC (RiNet ISP) >Environment: System: FreeBSD 4-STABLE >Description: This patch changes vinum fake-disklabel block/frag size from default 8k/1k to more approppriate for modern disks 16k/2k. Also, it removes duplicate assignment. It applies to both -current and -stable. >How-To-Repeat: Configure vinum volume disklabel /dev/vinum/${volume} Watch for values in 'a' partition. >Fix: Index: sys/dev/vinum/vinumio.c =================================================================== RCS file: /home/ncvs/src/sys/dev/vinum/vinumio.c,v retrieving revision 1.52.2.6 diff -u -r1.52.2.6 vinumio.c --- sys/dev/vinum/vinumio.c 2 May 2002 08:43:44 -0000 1.52.2.6 +++ sys/dev/vinum/vinumio.c 6 Mar 2004 14:18:23 -0000 @@ -750,9 +750,8 @@ * swap, c is nothing. */ lp->d_partitions[0].p_size = size; - lp->d_partitions[0].p_fsize = 1024; lp->d_partitions[0].p_fstype = FS_BSDFFS; /* FreeBSD File System :-) */ - lp->d_partitions[0].p_fsize = 1024; /* FS fragment size */ + lp->d_partitions[0].p_fsize = 2048; /* FS fragment size */ lp->d_partitions[0].p_frag = 8; /* and fragments per block */ lp->d_partitions[SWAP_PART].p_size = size; lp->d_partitions[SWAP_PART].p_fstype = FS_SWAP; /* swap partition */ >Release-Note: >Audit-Trail: >Unformatted: