public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs
@ 2013-02-10 22:59 normalperson at yhbt dot net
  2013-02-10 23:03 ` [Bug libc/15132] " normalperson at yhbt dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: normalperson at yhbt dot net @ 2013-02-10 22:59 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15132

             Bug #: 15132
           Summary: stat/fstat called unnecessarily for statvfs/fstatvfs
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: normalperson@yhbt.net
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


statvfs/fstatvfs call stat/fstat unnecessarily when the Linux kernel (2.6.36+)
returns ST_VALID in statfs/fstatfs.  The stat/fstat are unnecessary syscalls
which can be avoided.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
@ 2013-02-10 23:03 ` normalperson at yhbt dot net
  2013-06-11 16:56 ` ondra at iuuk dot mff.cuni.cz
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: normalperson at yhbt dot net @ 2013-02-10 23:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15132

--- Comment #1 from Eric Wong <normalperson at yhbt dot net> 2013-02-10 23:03:32 UTC ---
Created attachment 6861
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6861
[PATCH] avoid stat/fstat in statvfs/fstatvfs

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
  2013-02-10 23:03 ` [Bug libc/15132] " normalperson at yhbt dot net
@ 2013-06-11 16:56 ` ondra at iuuk dot mff.cuni.cz
       [not found] ` <bug-15132-131-KWdmO6RHGz@http.sourceware.org/bugzilla/>
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ondra at iuuk dot mff.cuni.cz @ 2013-06-11 16:56 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15132

OndrejBilka <ondra at iuuk dot mff.cuni.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ondra at iuuk dot mff.cuni.cz

--- Comment #2 from OndrejBilka <ondra at iuuk dot mff.cuni.cz> ---
Looks ok for me. Could you post it to libc-alpha?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
       [not found] ` <bug-15132-131-KWdmO6RHGz@http.sourceware.org/bugzilla/>
@ 2013-06-12  8:15   ` Ondřej Bílka
  0 siblings, 0 replies; 10+ messages in thread
From: Ondřej Bílka @ 2013-06-12  8:15 UTC (permalink / raw)
  To: normalperson at yhbt dot net; +Cc: glibc-bugs

On Wed, Jun 12, 2013 at 12:19:08AM +0000, normalperson at yhbt dot net wrote:
> http://sourceware.org/bugzilla/show_bug.cgi?id=15132
> 
> --- Comment #3 from Eric Wong <normalperson at yhbt dot net> ---
> I already posted this to libc-alpha before creating this BZ entry.
> Apparently I need copyright assignment papers, but I'm unsure which ones...
> 
> ref: http://mid.gmane.org/20130211003736.GA12979@dcvr.yhbt.net
>
See following page, As completing them takes a while it is better to
also mention other projects you will likely contribute in advance.

http://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (2 preceding siblings ...)
       [not found] ` <bug-15132-131-KWdmO6RHGz@http.sourceware.org/bugzilla/>
@ 2013-06-12  8:16 ` neleai at seznam dot cz
  2013-10-09  8:17 ` neleai at seznam dot cz
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2013-06-12  8:16 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15132

--- Comment #4 from Ondrej Bilka <neleai at seznam dot cz> ---
On Wed, Jun 12, 2013 at 12:19:08AM +0000, normalperson at yhbt dot net wrote:
> http://sourceware.org/bugzilla/show_bug.cgi?id=15132
> 
> --- Comment #3 from Eric Wong <normalperson at yhbt dot net> ---
> I already posted this to libc-alpha before creating this BZ entry.
> Apparently I need copyright assignment papers, but I'm unsure which ones...
> 
> ref: http://mid.gmane.org/20130211003736.GA12979@dcvr.yhbt.net
>
See following page, As completing them takes a while it is better to
also mention other projects you will likely contribute in advance.

http://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (3 preceding siblings ...)
  2013-06-12  8:16 ` neleai at seznam dot cz
@ 2013-10-09  8:17 ` neleai at seznam dot cz
  2014-01-16 18:51 ` normalperson at yhbt dot net
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2013-10-09  8:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15132

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |neleai at seznam dot cz

--- Comment #5 from Ondrej Bilka <neleai at seznam dot cz> ---
Did assignment papers arrived?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (4 preceding siblings ...)
  2013-10-09  8:17 ` neleai at seznam dot cz
@ 2014-01-16 18:51 ` normalperson at yhbt dot net
  2014-05-29  4:14 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: normalperson at yhbt dot net @ 2014-01-16 18:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15132

--- Comment #6 from Eric Wong <normalperson at yhbt dot net> ---
I should have my copyright assignment paperwork in order, gnu.org RT #862506

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (5 preceding siblings ...)
  2014-01-16 18:51 ` normalperson at yhbt dot net
@ 2014-05-29  4:14 ` cvs-commit at gcc dot gnu.org
  2014-05-29  4:16 ` siddhesh at redhat dot com
  2014-06-13 18:51 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-05-29  4:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15132

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a (commit)
      from  0d3b7a190c3abbdce27d4b0b9f16517bf5664099 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a

commit 26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a
Author: Eric Wong <normalperson@yhbt.net>
Date:   Thu May 29 09:41:29 2014 +0530

    Avoid stat/fstat in statvfs/fstatvfs (BZ #15132)

    Delay the use of stat/fstat until stat data is required.  When the
    kernel returns ST_VALID, stat data is not used by __internal_statvfs.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                  |   16 ++++++++++++++++
 NEWS                                       |   20 ++++++++++----------
 sysdeps/unix/sysv/linux/fstatvfs.c         |    4 ++--
 sysdeps/unix/sysv/linux/fstatvfs64.c       |   10 +++-------
 sysdeps/unix/sysv/linux/internal_statvfs.c |   15 ++++++++-------
 sysdeps/unix/sysv/linux/statvfs.c          |    6 ++----
 sysdeps/unix/sysv/linux/statvfs64.c        |   10 +++-------
 7 files changed, 44 insertions(+), 37 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (6 preceding siblings ...)
  2014-05-29  4:14 ` cvs-commit at gcc dot gnu.org
@ 2014-05-29  4:16 ` siddhesh at redhat dot com
  2014-06-13 18:51 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: siddhesh at redhat dot com @ 2014-05-29  4:16 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15132

Siddhesh Poyarekar <siddhesh at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |siddhesh at redhat dot com
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libc/15132] stat/fstat called unnecessarily for statvfs/fstatvfs
  2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
                   ` (7 preceding siblings ...)
  2014-05-29  4:16 ` siddhesh at redhat dot com
@ 2014-06-13 18:51 ` fweimer at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15132

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-13 18:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-10 22:59 [Bug libc/15132] New: stat/fstat called unnecessarily for statvfs/fstatvfs normalperson at yhbt dot net
2013-02-10 23:03 ` [Bug libc/15132] " normalperson at yhbt dot net
2013-06-11 16:56 ` ondra at iuuk dot mff.cuni.cz
     [not found] ` <bug-15132-131-KWdmO6RHGz@http.sourceware.org/bugzilla/>
2013-06-12  8:15   ` Ondřej Bílka
2013-06-12  8:16 ` neleai at seznam dot cz
2013-10-09  8:17 ` neleai at seznam dot cz
2014-01-16 18:51 ` normalperson at yhbt dot net
2014-05-29  4:14 ` cvs-commit at gcc dot gnu.org
2014-05-29  4:16 ` siddhesh at redhat dot com
2014-06-13 18:51 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).