<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/statfs.h, branch v3.2.65</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.2.65</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.2.65'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2010-08-09T20:48:44Z</updated>
<entry>
<title>add f_flags to struct statfs(64)</title>
<updated>2010-08-09T20:48:44Z</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2010-07-07T16:53:25Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=365b18189789bfa1acd9939e6312b8a4b4577b28'/>
<id>urn:sha1:365b18189789bfa1acd9939e6312b8a4b4577b28</id>
<content type='text'>
Add a flags field to help glibc implementing statvfs(3) efficiently.

We copy the flag values from glibc, and add a new ST_VALID flag to
denote that f_flags is implemented.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>[PATCH] 2TB files: change type of kstatfs entries</title>
<updated>2006-03-26T16:57:00Z</updated>
<author>
<name>Takashi Sato</name>
<email>sho@tnes.nec.co.jp</email>
</author>
<published>2006-03-26T09:37:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e2d53f9525790dfacbcf09f359536311d3913d98'/>
<id>urn:sha1:e2d53f9525790dfacbcf09f359536311d3913d98</id>
<content type='text'>
This fix was proposed by Trond Myklebust.  He says: The type "sector_t" is
heavily tied in to the block layer interface as an offset/handle to a block,
and is subject to a supposedly block-specific configuration option:
CONFIG_LBD.  Despite this, it is used in struct kstatfs to save a couple of
bytes on the stack whenever we call the filesystems' -&gt;statfs().

So kstatfs's entries related to blocks are invalid on statfs64 for a network
filesystem which has more than 2^32-1 blocks when CONFIG_LBD is disabled.

- struct kstatfs
  Change the type of following entries from sector_t to u64.
  f_blocks
  f_bfree
  f_bavail
  f_files
  f_ffree

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: Takashi Sato &lt;sho@tnes.nec.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add system calls statfs64 and fstatfs64</title>
<updated>2003-06-20T15:13:06Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@digeo.com</email>
</author>
<published>2003-06-20T15:13:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=244f36266d58f4c26d707fdbcff592209d56aa80'/>
<id>urn:sha1:244f36266d58f4c26d707fdbcff592209d56aa80</id>
<content type='text'>
From: Peter Chubb &lt;peter@chubb.wattle.id.au&gt;

Add two new system calls, statfs64 and fstatfs64.  This has been needed
sincew the 64-bit sector_t merge - the current structures will overflow.

- Use a common interface (vfs_statfs) with the rest of the kernel,

- convert to 32-bit at (f)statfs time.

- New field f_frsize gives underlying fragment size for the filesystem.
  (Solaris has this, and the Open Group describe it).

- The old statfs syscalls will now return -EOVERFLOW if the device was
  too large to be represented inthe old data structures.

The new system calls take a size_t argument, which is the size of the
structure to be filled in (as requested by Ben LaHaise), to `futureproof' the
interface.

Has been reviewed by the arch maintainers and by Ulrich Drepper.
</content>
</entry>
</feed>
