This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/6] Extended file stat system call
- From: David Howells <dhowells at redhat dot com>
- To: Dave Chinner <david at fromorbit dot com>
- Cc: dhowells at redhat dot com, Andreas Dilger <adilger at dilger dot ca>, linux-fsdevel at vger dot kernel dot org, linux-nfs at vger dot kernel dot org, linux-cifs at vger dot kernel dot org, samba-technical at lists dot samba dot org, linux-ext4 at vger dot kernel dot org, wine-devel at winehq dot org, kfm-devel at kde dot org, nautilus-list at gnome dot org, linux-api at vger dot kernel dot org, libc-alpha at sourceware dot org
- Date: Thu, 10 May 2012 10:51:38 +0100
- Subject: Re: [PATCH 0/6] Extended file stat system call
- References: <20120428005856.GI9541@dastard> <20120427010610.GE9541@dastard> <20120419140558.17272.74360.stgit@warthog.procyon.org.uk> <4111.1335519545@redhat.com> <20120427131306.GG9541@dastard> <F2018580-9ACC-4A63-A8D1-155FA371749A@dilger.ca>
Dave Chinner <david@fromorbit.com> wrote:
> st_blksize - file block size
> st_alloc_blksize - allocation block size/alignment
> st_small_io_size - IO size/alignment that avoids
> filesystem/page cache RMW
> st_preferred_io_size - preferred IO size for general
> usage.
> st_large_io_size - IO size/alignment for high
> bandwidth sequential IO
What is st_blksize here? Is it directly comparable (if such a thing is
possible) to st_blksize in struct stat? Or does st_preferred_io_size map to
the current st_blksize and your st_blksize map to actual media block size (and
if so, is that the same as st_alloc_blksize? - I presume st_alloc_blksize
must be a multiple of the media block size).
David