From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 23 17:49:18 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2DEABE33 for ; Mon, 23 Feb 2015 17:49:18 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EF7E5637 for ; Mon, 23 Feb 2015 17:49:17 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1NHnHcu006293 for ; Mon, 23 Feb 2015 17:49:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197876] sector size agreed with GEOM gate is not reflected in the block size of the device entry Date: Mon, 23 Feb 2015 17:49:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jau@iki.fi X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 17:49:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197876 --- Comment #2 from jau@iki.fi --- Created attachment 153379 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153379&action=edit fix devfs_getattr() just enough to make it report sizes for GEOM providers This patch fixes the problems with GEOM provider size fields reported to user space via the [lf]stat() calls. Now the same example cases shown before look a whole lot better. Even the 16k sectorsize/st_blksize which previously was being falsely reported as 4k comes out just fine. /dev/mirror/root: st_dev: 1895890688 st_ino: 201 st_mode: 0x21a0 st_nlink: 1 st_uid: 0 st_gid: 5 st_rdev: 201 st_size: 2147483136 st_blocks: 4194303 st_blksize: 4096 st_flags: 0x0 st_gen: 0 st_btim: 1970-01-01 01:59:59.000000000 st_mtim: 2015-02-23 19:23:13.180258000 st_ctim: 2015-02-23 19:23:13.180258000 st_atim: 2015-02-23 19:25:07.508476106 /dev/ggate0: st_dev: 1895890688 st_ino: 177 st_mode: 0x21a0 st_nlink: 1 st_uid: 0 st_gid: 5 st_rdev: 177 st_size: 68719476736 st_blocks: 134217728 st_blksize: 16384 st_flags: 0x0 st_gen: 0 st_btim: 1970-01-01 01:59:59.000000000 st_mtim: 2015-02-23 19:43:48.037354325 st_ctim: 2015-02-23 19:43:48.037354325 st_atim: 2015-02-23 19:43:48.037354325 -- You are receiving this mail because: You are the assignee for the bug.