Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2015 17:49:18 +0000
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
Message-ID:  <bug-197876-8-IotBArcaBK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197876-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197876-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197876-8-IotBArcaBK>