public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "P at draigBrady dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir() Date: Thu, 03 Sep 2015 22:54:00 -0000 [thread overview] Message-ID: <bug-18921-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=18921 Bug ID: 18921 Summary: Regression: extraneous stat() and fstat() performed by opendir() Product: glibc Version: 2.22 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: roland at gnu dot org Reporter: P at draigBrady dot com CC: drepper.fsp at gmail dot com Target Milestone: --- As diagnosed by Bernhard Voelker, since glibc-2.22 ... and specifically this commit: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=glibc-2.21-360-g46f894d opendir(".") has been changed from a simple openat() to this sequence of stat()+open() as the following diff of `strace ls` outputs indicates: stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 -openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 +stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 +open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 +fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2015-09-03 22:54 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-03 22:54 P at draigBrady dot com [this message] 2015-09-03 23:15 ` [Bug libc/18921] " roland at gnu dot org 2015-09-08 21:02 ` roland at gnu dot org 2015-10-29 17:06 ` jsm28 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-18921-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).