From owner-cvs-src-old@FreeBSD.ORG Fri Apr 2 15:13:49 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FFE3106566C for ; Fri, 2 Apr 2010 15:13:49 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0E89D8FC21 for ; Fri, 2 Apr 2010 15:13:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o32FDmem063388 for ; Fri, 2 Apr 2010 15:13:48 GMT (envelope-from avg@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o32FDmPn063387 for cvs-src-old@freebsd.org; Fri, 2 Apr 2010 15:13:48 GMT (envelope-from avg@repoman.freebsd.org) Message-Id: <201004021513.o32FDmPn063387@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to avg@repoman.freebsd.org using -f From: Andriy Gapon Date: Fri, 2 Apr 2010 15:12:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom geom_vfs.c src/sys/kern vfs_bio.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2010 15:13:49 -0000 avg 2010-04-02 15:12:31 UTC FreeBSD src repository Modified files: sys/geom geom_vfs.c sys/kern vfs_bio.c Log: SVN rev 206097 on 2010-04-02 15:12:31Z by avg bo_bsize: revert r205860 and take an alternative approch in getblk In r205860 I missed the fact that there is code that strongly assumes that devvp bo_bsize is equal to underlying provider's sectorsize. In those places it is hard to obtain the sectorsize in an alternative way if devvp bo_bsize is set to something else. So, I am reverting bo_bsize assigment in g_vfs_open. Instead, in getblk I use DEV_BSIZE block size for b_offset calculation if vp is a disk vp as reported by vn_isdisk. This should coinside with vp being a devvp. Reported by: Mykola Dzham Tested by: Mykola Dzham Pointyhat to: avg MFC after: 2 weeks X-ToDo: convert bread(devvp) in all fs to use bo_bsize-d blocks Revision Changes Path 1.18 +1 -1 src/sys/geom/geom_vfs.c 1.569 +1 -1 src/sys/kern/vfs_bio.c